
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Ginkgo · 这是程序员吗</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="xishengcai">
        
        
    
    
    <link rel="stylesheet" href="../../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-katex/katex.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-sectionx/sectionx.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-terminal/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-versions-select/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="ginkgo_cmd.html" />
    
    
    <link rel="prev" href="./" />
    

    
    <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-chart/c3/c3.min.css">
    <script src="../../../gitbook/gitbook-plugin-chart/c3/d3.min.js"></script>
    <script src="../../../gitbook/gitbook-plugin-chart/c3/c3.min.js"></script>
    

    <script src="../../../gitbook/gitbook-plugin-graph/d3.min.js"></script>
    <script src="../../../gitbook/gitbook-plugin-graph/function-plot.js"></script>    

    
        <link rel="shortcut icon" href='../../../favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../../favicon.ico' type="image/x-icon">
    
    
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"xishengcai/xisheng.blog","types":["star"],"size":"small"};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://xisheng.vip" target="_blank" class="custom-link">Home</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        <li class="header">Blog</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../../">
            
                <a href="../../../">
            
                    
                        <b>1.1.</b>
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../algorithm/">
            
                <a href="../../algorithm/">
            
                    
                        <b>1.2.</b>
                    
                    Algorithm
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../algorithm/heap.html">
            
                <a href="../../algorithm/heap.html">
            
                    
                        <b>1.2.1.</b>
                    
                    Heap
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../algorithm/readme.html">
            
                <a href="../../algorithm/readme.html">
            
                    
                        <b>1.2.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../angular/">
            
                <a href="../../angular/">
            
                    
                        <b>1.3.</b>
                    
                    Angular
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../angular/1-start.html">
            
                <a href="../../angular/1-start.html">
            
                    
                        <b>1.3.1.</b>
                    
                    Start
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../angular/2-component.html">
            
                <a href="../../angular/2-component.html">
            
                    
                        <b>1.3.2.</b>
                    
                    Component
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../../angular/3-form.html">
            
                <a href="../../angular/3-form.html">
            
                    
                        <b>1.3.3.</b>
                    
                    Form
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../../angular/readme.html">
            
                <a href="../../angular/readme.html">
            
                    
                        <b>1.3.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../database/">
            
                <a href="../../database/">
            
                    
                        <b>1.4.</b>
                    
                    Database
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../database/mongodb.html">
            
                <a href="../../database/mongodb.html">
            
                    
                        <b>1.4.1.</b>
                    
                    Mongodb
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../database/readme.html">
            
                <a href="../../database/readme.html">
            
                    
                        <b>1.4.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../docker/">
            
                <a href="../../docker/">
            
                    
                        <b>1.5.</b>
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../docker/CentOS.html">
            
                <a href="../../docker/CentOS.html">
            
                    
                        <b>1.5.1.</b>
                    
                    CentOS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../docker/install.html">
            
                <a href="../../docker/install.html">
            
                    
                        <b>1.5.2.</b>
                    
                    Install
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../../docker/readme.html">
            
                <a href="../../docker/readme.html">
            
                    
                        <b>1.5.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../../docker/官方shell.html">
            
                <a href="../../docker/官方shell.html">
            
                    
                        <b>1.5.4.</b>
                    
                    官方Shell
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../golang/">
            
                <a href="../../golang/">
            
                    
                        <b>1.6.</b>
                    
                    Golang
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../golang/aop.html">
            
                <a href="../../golang/aop.html">
            
                    
                        <b>1.6.1.</b>
                    
                    Aop
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../golang/base/">
            
                <a href="../../golang/base/">
            
                    
                        <b>1.6.2.</b>
                    
                    Base
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.1" data-path="../../golang/base/copy.html">
            
                <a href="../../golang/base/copy.html">
            
                    
                        <b>1.6.2.1.</b>
                    
                    Copy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.2" data-path="../../golang/base/new_and_make.html">
            
                <a href="../../golang/base/new_and_make.html">
            
                    
                        <b>1.6.2.2.</b>
                    
                    New And Make
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.3" data-path="../../golang/base/readme.html">
            
                <a href="../../golang/base/readme.html">
            
                    
                        <b>1.6.2.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4" data-path="../../golang/base/reflect.html">
            
                <a href="../../golang/base/reflect.html">
            
                    
                        <b>1.6.2.4.</b>
                    
                    Reflect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.5" data-path="../../golang/base/string.html">
            
                <a href="../../golang/base/string.html">
            
                    
                        <b>1.6.2.5.</b>
                    
                    String
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.6" data-path="../../golang/base/tag.html">
            
                <a href="../../golang/base/tag.html">
            
                    
                        <b>1.6.2.6.</b>
                    
                    Tag
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../golang/clouser.html">
            
                <a href="../../golang/clouser.html">
            
                    
                        <b>1.6.3.</b>
                    
                    Clouser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../golang/err 优雅处理.html">
            
                <a href="../../golang/err 优雅处理.html">
            
                    
                        <b>1.6.4.</b>
                    
                    Err 优雅处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../golang/go module 2.html">
            
                <a href="../../golang/go module 2.html">
            
                    
                        <b>1.6.5.</b>
                    
                    Go Module 2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../../golang/go_mod.html">
            
                <a href="../../golang/go_mod.html">
            
                    
                        <b>1.6.6.</b>
                    
                    Go Mod
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../../golang/gocraftwork.html">
            
                <a href="../../golang/gocraftwork.html">
            
                    
                        <b>1.6.7.</b>
                    
                    Gocraftwork
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../../golang/oauth.html">
            
                <a href="../../golang/oauth.html">
            
                    
                        <b>1.6.8.</b>
                    
                    Oauth
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../../golang/readme.html">
            
                <a href="../../golang/readme.html">
            
                    
                        <b>1.6.9.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../../golang/swagger.html">
            
                <a href="../../golang/swagger.html">
            
                    
                        <b>1.6.10.</b>
                    
                    Swagger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../../golang/tls.html">
            
                <a href="../../golang/tls.html">
            
                    
                        <b>1.6.11.</b>
                    
                    Tls
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.12" >
            
                <span>
            
                    
                        <b>1.6.12.</b>
                    
                    代码走读
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.12.1" data-path="../../golang/代码走读/2020.5.26.html">
            
                <a href="../../golang/代码走读/2020.5.26.html">
            
                    
                        <b>1.6.12.1.</b>
                    
                    2020.5.26
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.13" data-path="../../golang/任务队列/">
            
                <a href="../../golang/任务队列/">
            
                    
                        <b>1.6.13.</b>
                    
                    任务队列
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.13.1" data-path="../../golang/任务队列/gocraft-worker.html">
            
                <a href="../../golang/任务队列/gocraft-worker.html">
            
                    
                        <b>1.6.13.1.</b>
                    
                    Gocraft Worker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.13.2" data-path="../../golang/任务队列/readme.html">
            
                <a href="../../golang/任务队列/readme.html">
            
                    
                        <b>1.6.13.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.14" data-path="../../golang/参数校验.html">
            
                <a href="../../golang/参数校验.html">
            
                    
                        <b>1.6.14.</b>
                    
                    参数校验
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../istio/">
            
                <a href="../../istio/">
            
                    
                        <b>1.7.</b>
                    
                    Istio
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../istio/readme.html">
            
                <a href="../../istio/readme.html">
            
                    
                        <b>1.7.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../istio/virtualservice.html">
            
                <a href="../../istio/virtualservice.html">
            
                    
                        <b>1.7.2.</b>
                    
                    Virtualservice
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <span>
            
                    
                        <b>1.8.</b>
                    
                    Java
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../java/jvm.html">
            
                <a href="../../java/jvm.html">
            
                    
                        <b>1.8.1.</b>
                    
                    Jvm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../java/typescript.html">
            
                <a href="../../java/typescript.html">
            
                    
                        <b>1.8.2.</b>
                    
                    Typescript
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../../kubernetes/">
            
                <a href="../../kubernetes/">
            
                    
                        <b>1.9.</b>
                    
                    Kubernetes
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../../kubernetes/APIService.html">
            
                <a href="../../kubernetes/APIService.html">
            
                    
                        <b>1.9.1.</b>
                    
                    APIService
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../../kubernetes/CAK.html">
            
                <a href="../../kubernetes/CAK.html">
            
                    
                        <b>1.9.2.</b>
                    
                    CAK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../../kubernetes/Deployment 的实现原理.html">
            
                <a href="../../kubernetes/Deployment 的实现原理.html">
            
                    
                        <b>1.9.3.</b>
                    
                    Deployment 的实现原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../../kubernetes/K8s源码/">
            
                <a href="../../kubernetes/K8s源码/">
            
                    
                        <b>1.9.4.</b>
                    
                    K8s源码
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.4.1" data-path="../../kubernetes/K8s源码/calico 源码分析.html">
            
                <a href="../../kubernetes/K8s源码/calico 源码分析.html">
            
                    
                        <b>1.9.4.1.</b>
                    
                    Calico 源码分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.2" data-path="../../kubernetes/K8s源码/garbage collector controller 源码分析.html">
            
                <a href="../../kubernetes/K8s源码/garbage collector controller 源码分析.html">
            
                    
                        <b>1.9.4.2.</b>
                    
                    Garbage Collector Controller 源码分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.3" data-path="../../kubernetes/K8s源码/job.html">
            
                <a href="../../kubernetes/K8s源码/job.html">
            
                    
                        <b>1.9.4.3.</b>
                    
                    Job
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.4" data-path="../../kubernetes/K8s源码/kube-proxy-iptables.html">
            
                <a href="../../kubernetes/K8s源码/kube-proxy-iptables.html">
            
                    
                        <b>1.9.4.4.</b>
                    
                    Kube Proxy Iptables
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.5" data-path="../../kubernetes/K8s源码/kube-proxy-ipvs.html">
            
                <a href="../../kubernetes/K8s源码/kube-proxy-ipvs.html">
            
                    
                        <b>1.9.4.5.</b>
                    
                    Kube Proxy Ipvs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.6" data-path="../../kubernetes/K8s源码/kube-proxy.html">
            
                <a href="../../kubernetes/K8s源码/kube-proxy.html">
            
                    
                        <b>1.9.4.6.</b>
                    
                    Kube Proxy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.7" data-path="../../kubernetes/K8s源码/kubectl-exec.html">
            
                <a href="../../kubernetes/K8s源码/kubectl-exec.html">
            
                    
                        <b>1.9.4.7.</b>
                    
                    Kubectl Exec
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.8" data-path="../../kubernetes/K8s源码/kubectl源码阅读1.html">
            
                <a href="../../kubernetes/K8s源码/kubectl源码阅读1.html">
            
                    
                        <b>1.9.4.8.</b>
                    
                    Kubectl源码阅读1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.9" data-path="../../kubernetes/K8s源码/kubectl源码阅读2.html">
            
                <a href="../../kubernetes/K8s源码/kubectl源码阅读2.html">
            
                    
                        <b>1.9.4.9.</b>
                    
                    Kubectl源码阅读2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.10" data-path="../../kubernetes/K8s源码/readme.html">
            
                <a href="../../kubernetes/K8s源码/readme.html">
            
                    
                        <b>1.9.4.10.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.11" data-path="../../kubernetes/K8s源码/schedule.html">
            
                <a href="../../kubernetes/K8s源码/schedule.html">
            
                    
                        <b>1.9.4.11.</b>
                    
                    Schedule
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.12" data-path="../../kubernetes/K8s源码/scheme.html">
            
                <a href="../../kubernetes/K8s源码/scheme.html">
            
                    
                        <b>1.9.4.12.</b>
                    
                    Scheme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.13" data-path="../../kubernetes/K8s源码/调度队列.html">
            
                <a href="../../kubernetes/K8s源码/调度队列.html">
            
                    
                        <b>1.9.4.13.</b>
                    
                    调度队列
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../../kubernetes/Karmada.html">
            
                <a href="../../kubernetes/Karmada.html">
            
                    
                        <b>1.9.5.</b>
                    
                    Karmada
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.6" data-path="../../kubernetes/Pixie.html">
            
                <a href="../../kubernetes/Pixie.html">
            
                    
                        <b>1.9.6.</b>
                    
                    Pixie
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.7" data-path="../../kubernetes/admission access.html">
            
                <a href="../../kubernetes/admission access.html">
            
                    
                        <b>1.9.7.</b>
                    
                    Admission Access
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.8" data-path="../../kubernetes/ccm.html">
            
                <a href="../../kubernetes/ccm.html">
            
                    
                        <b>1.9.8.</b>
                    
                    Ccm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.9" data-path="../../kubernetes/client-go.html">
            
                <a href="../../kubernetes/client-go.html">
            
                    
                        <b>1.9.9.</b>
                    
                    Client Go
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.10" data-path="../../kubernetes/command.html">
            
                <a href="../../kubernetes/command.html">
            
                    
                        <b>1.9.10.</b>
                    
                    Command
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.11" data-path="../../kubernetes/controller.html">
            
                <a href="../../kubernetes/controller.html">
            
                    
                        <b>1.9.11.</b>
                    
                    Controller
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.12" data-path="../../kubernetes/copy docker config.html">
            
                <a href="../../kubernetes/copy docker config.html">
            
                    
                        <b>1.9.12.</b>
                    
                    Copy Docker Config
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.13" data-path="../../kubernetes/etcd-operation.html">
            
                <a href="../../kubernetes/etcd-operation.html">
            
                    
                        <b>1.9.13.</b>
                    
                    Etcd Operation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.14" data-path="../../kubernetes/gc.html">
            
                <a href="../../kubernetes/gc.html">
            
                    
                        <b>1.9.14.</b>
                    
                    Gc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.15" data-path="../../kubernetes/helm chart.html">
            
                <a href="../../kubernetes/helm chart.html">
            
                    
                        <b>1.9.15.</b>
                    
                    Helm Chart
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.16" data-path="../../kubernetes/helm.html">
            
                <a href="../../kubernetes/helm.html">
            
                    
                        <b>1.9.16.</b>
                    
                    Helm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17" >
            
                <span>
            
                    
                        <b>1.9.17.</b>
                    
                    Helm
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.17.1" data-path="../../kubernetes/helm/charts.html">
            
                <a href="../../kubernetes/helm/charts.html">
            
                    
                        <b>1.9.17.1.</b>
                    
                    Charts
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.2" data-path="../../kubernetes/helm/helm 钩子函数.html">
            
                <a href="../../kubernetes/helm/helm 钩子函数.html">
            
                    
                        <b>1.9.17.2.</b>
                    
                    Helm 钩子函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.3" data-path="../../kubernetes/helm/helm-operator.html">
            
                <a href="../../kubernetes/helm/helm-operator.html">
            
                    
                        <b>1.9.17.3.</b>
                    
                    Helm Operator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.4" data-path="../../kubernetes/helm/文档查询.html">
            
                <a href="../../kubernetes/helm/文档查询.html">
            
                    
                        <b>1.9.17.4.</b>
                    
                    文档查询
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.5" data-path="../../kubernetes/helm/语法.html">
            
                <a href="../../kubernetes/helm/语法.html">
            
                    
                        <b>1.9.17.5.</b>
                    
                    语法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.18" data-path="../../kubernetes/install.html">
            
                <a href="../../kubernetes/install.html">
            
                    
                        <b>1.9.18.</b>
                    
                    Install
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.19" data-path="../../kubernetes/istio-inject.html">
            
                <a href="../../kubernetes/istio-inject.html">
            
                    
                        <b>1.9.19.</b>
                    
                    Istio Inject
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.20" >
            
                <span>
            
                    
                        <b>1.9.20.</b>
                    
                    KubeEdge
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.21" data-path="../../kubernetes/kuber-apiserver-flag.html">
            
                <a href="../../kubernetes/kuber-apiserver-flag.html">
            
                    
                        <b>1.9.21.</b>
                    
                    Kuber Apiserver Flag
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.22" data-path="../../kubernetes/kubernetes-client.html">
            
                <a href="../../kubernetes/kubernetes-client.html">
            
                    
                        <b>1.9.22.</b>
                    
                    Kubernetes Client
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.23" data-path="../../kubernetes/kubernetes灾备.html">
            
                <a href="../../kubernetes/kubernetes灾备.html">
            
                    
                        <b>1.9.23.</b>
                    
                    Kubernetes灾备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.24" data-path="../../kubernetes/kubesphere/">
            
                <a href="../../kubernetes/kubesphere/">
            
                    
                        <b>1.9.24.</b>
                    
                    Kubesphere
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.24.1" data-path="../../kubernetes/kubesphere/helm.html">
            
                <a href="../../kubernetes/kubesphere/helm.html">
            
                    
                        <b>1.9.24.1.</b>
                    
                    Helm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.24.2" data-path="../../kubernetes/kubesphere/readme.html">
            
                <a href="../../kubernetes/kubesphere/readme.html">
            
                    
                        <b>1.9.24.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.25" data-path="../../kubernetes/kubevela/">
            
                <a href="../../kubernetes/kubevela/">
            
                    
                        <b>1.9.25.</b>
                    
                    Kubevela
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.25.1" data-path="../../kubernetes/kubevela/KubeVela 功能.html">
            
                <a href="../../kubernetes/kubevela/KubeVela 功能.html">
            
                    
                        <b>1.9.25.1.</b>
                    
                    KubeVela 功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.2" data-path="../../kubernetes/kubevela/cue.html">
            
                <a href="../../kubernetes/kubevela/cue.html">
            
                    
                        <b>1.9.25.2.</b>
                    
                    Cue
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.3" data-path="../../kubernetes/kubevela/oam.html">
            
                <a href="../../kubernetes/kubevela/oam.html">
            
                    
                        <b>1.9.25.3.</b>
                    
                    Oam
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.4" data-path="../../kubernetes/kubevela/readme.html">
            
                <a href="../../kubernetes/kubevela/readme.html">
            
                    
                        <b>1.9.25.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.5" data-path="../../kubernetes/kubevela/rollout design.html">
            
                <a href="../../kubernetes/kubevela/rollout design.html">
            
                    
                        <b>1.9.25.5.</b>
                    
                    Rollout Design
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.6" data-path="../../kubernetes/kubevela/vela run.html">
            
                <a href="../../kubernetes/kubevela/vela run.html">
            
                    
                        <b>1.9.25.6.</b>
                    
                    Vela Run
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.7" data-path="../../kubernetes/kubevela/vela up.html">
            
                <a href="../../kubernetes/kubevela/vela up.html">
            
                    
                        <b>1.9.25.7.</b>
                    
                    Vela Up
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.8" data-path="../../kubernetes/kubevela/vela-cluster.html">
            
                <a href="../../kubernetes/kubevela/vela-cluster.html">
            
                    
                        <b>1.9.25.8.</b>
                    
                    Vela Cluster
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.9" data-path="../../kubernetes/kubevela/vela-helm.html">
            
                <a href="../../kubernetes/kubevela/vela-helm.html">
            
                    
                        <b>1.9.25.9.</b>
                    
                    Vela Helm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.10" data-path="../../kubernetes/kubevela/vela-pk-oam.html">
            
                <a href="../../kubernetes/kubevela/vela-pk-oam.html">
            
                    
                        <b>1.9.25.10.</b>
                    
                    Vela Pk Oam
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.26" data-path="../../kubernetes/mk-cert.html">
            
                <a href="../../kubernetes/mk-cert.html">
            
                    
                        <b>1.9.26.</b>
                    
                    Mk Cert
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.27" data-path="../../kubernetes/open_swagger-ui.html">
            
                <a href="../../kubernetes/open_swagger-ui.html">
            
                    
                        <b>1.9.27.</b>
                    
                    Open Swagger Ui
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.28" data-path="../../kubernetes/readme.html">
            
                <a href="../../kubernetes/readme.html">
            
                    
                        <b>1.9.28.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29" data-path="../../kubernetes/task/">
            
                <a href="../../kubernetes/task/">
            
                    
                        <b>1.9.29.</b>
                    
                    Task
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.29.1" data-path="../../kubernetes/task/HPA.html">
            
                <a href="../../kubernetes/task/HPA.html">
            
                    
                        <b>1.9.29.1.</b>
                    
                    HPA
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.2" data-path="../../kubernetes/task/kubectl patch.html">
            
                <a href="../../kubernetes/task/kubectl patch.html">
            
                    
                        <b>1.9.29.2.</b>
                    
                    Kubectl Patch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.3" data-path="../../kubernetes/task/pod 信息注入.html">
            
                <a href="../../kubernetes/task/pod 信息注入.html">
            
                    
                        <b>1.9.29.3.</b>
                    
                    Pod 信息注入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.4" data-path="../../kubernetes/task/pod 垂直扩缩容.html">
            
                <a href="../../kubernetes/task/pod 垂直扩缩容.html">
            
                    
                        <b>1.9.29.4.</b>
                    
                    Pod 垂直扩缩容
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.5" data-path="../../kubernetes/task/readme.html">
            
                <a href="../../kubernetes/task/readme.html">
            
                    
                        <b>1.9.29.5.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.6" data-path="../../kubernetes/task/server-side-apply.html">
            
                <a href="../../kubernetes/task/server-side-apply.html">
            
                    
                        <b>1.9.29.6.</b>
                    
                    Server Side Apply
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.7" data-path="../../kubernetes/task/准入控制.html">
            
                <a href="../../kubernetes/task/准入控制.html">
            
                    
                        <b>1.9.29.7.</b>
                    
                    准入控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.8" data-path="../../kubernetes/task/聚合api.html">
            
                <a href="../../kubernetes/task/聚合api.html">
            
                    
                        <b>1.9.29.8.</b>
                    
                    聚合Api
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.9" data-path="../../kubernetes/task/资源预留配置.html">
            
                <a href="../../kubernetes/task/资源预留配置.html">
            
                    
                        <b>1.9.29.9.</b>
                    
                    资源预留配置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.30" data-path="../../kubernetes/webhook.html">
            
                <a href="../../kubernetes/webhook.html">
            
                    
                        <b>1.9.30.</b>
                    
                    Webhook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.31" data-path="../../kubernetes/一致性认证.html">
            
                <a href="../../kubernetes/一致性认证.html">
            
                    
                        <b>1.9.31.</b>
                    
                    一致性认证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.32" data-path="../../kubernetes/专利名词.html">
            
                <a href="../../kubernetes/专利名词.html">
            
                    
                        <b>1.9.32.</b>
                    
                    专利名词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.33" data-path="../../kubernetes/删除namespace.html">
            
                <a href="../../kubernetes/删除namespace.html">
            
                    
                        <b>1.9.33.</b>
                    
                    删除Namespace
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.34" data-path="../../kubernetes/简化多集群.html">
            
                <a href="../../kubernetes/简化多集群.html">
            
                    
                        <b>1.9.34.</b>
                    
                    简化多集群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35" data-path="../../kubernetes/网络插件/">
            
                <a href="../../kubernetes/网络插件/">
            
                    
                        <b>1.9.35.</b>
                    
                    网络插件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.35.1" data-path="../../kubernetes/网络插件/calico.html">
            
                <a href="../../kubernetes/网络插件/calico.html">
            
                    
                        <b>1.9.35.1.</b>
                    
                    Calico
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35.2" data-path="../../kubernetes/网络插件/cilium.html">
            
                <a href="../../kubernetes/网络插件/cilium.html">
            
                    
                        <b>1.9.35.2.</b>
                    
                    Cilium
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35.3" data-path="../../kubernetes/网络插件/ebpf.html">
            
                <a href="../../kubernetes/网络插件/ebpf.html">
            
                    
                        <b>1.9.35.3.</b>
                    
                    Ebpf
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35.4" data-path="../../kubernetes/网络插件/readme.html">
            
                <a href="../../kubernetes/网络插件/readme.html">
            
                    
                        <b>1.9.35.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.36" data-path="../../kubernetes/镜像/">
            
                <a href="../../kubernetes/镜像/">
            
                    
                        <b>1.9.36.</b>
                    
                    镜像
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.36.1" data-path="../../kubernetes/镜像/Containerd Stargz Snapshotter.html">
            
                <a href="../../kubernetes/镜像/Containerd Stargz Snapshotter.html">
            
                    
                        <b>1.9.36.1.</b>
                    
                    Containerd Stargz Snapshotter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.2" data-path="../../kubernetes/镜像/OCI.html">
            
                <a href="../../kubernetes/镜像/OCI.html">
            
                    
                        <b>1.9.36.2.</b>
                    
                    OCI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.3" data-path="../../kubernetes/镜像/harbor/">
            
                <a href="../../kubernetes/镜像/harbor/">
            
                    
                        <b>1.9.36.3.</b>
                    
                    Harbor
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.36.3.1" data-path="../../kubernetes/镜像/harbor/readme.html">
            
                <a href="../../kubernetes/镜像/harbor/readme.html">
            
                    
                        <b>1.9.36.3.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.36.4" data-path="../../kubernetes/镜像/readme.html">
            
                <a href="../../kubernetes/镜像/readme.html">
            
                    
                        <b>1.9.36.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.5" data-path="../../kubernetes/镜像/自动构建镜像.html">
            
                <a href="../../kubernetes/镜像/自动构建镜像.html">
            
                    
                        <b>1.9.36.5.</b>
                    
                    自动构建镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.6" data-path="../../kubernetes/镜像/镜像加速方案.html">
            
                <a href="../../kubernetes/镜像/镜像加速方案.html">
            
                    
                        <b>1.9.36.6.</b>
                    
                    镜像加速方案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.7" data-path="../../kubernetes/镜像/镜像延迟加载技术解析.html">
            
                <a href="../../kubernetes/镜像/镜像延迟加载技术解析.html">
            
                    
                        <b>1.9.36.7.</b>
                    
                    镜像延迟加载技术解析
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../../math/">
            
                <a href="../../math/">
            
                    
                        <b>1.10.</b>
                    
                    Math
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../../math/readme.html">
            
                <a href="../../math/readme.html">
            
                    
                        <b>1.10.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../../math/泊松分布.html">
            
                <a href="../../math/泊松分布.html">
            
                    
                        <b>1.10.2.</b>
                    
                    泊松分布
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../../效率/">
            
                <a href="../../效率/">
            
                    
                        <b>1.11.</b>
                    
                    效率
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../../效率/cat.html">
            
                <a href="../../效率/cat.html">
            
                    
                        <b>1.11.1.</b>
                    
                    Cat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../../效率/docker volume clean.html">
            
                <a href="../../效率/docker volume clean.html">
            
                    
                        <b>1.11.2.</b>
                    
                    Docker Volume Clean
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../../效率/git book.html">
            
                <a href="../../效率/git book.html">
            
                    
                        <b>1.11.3.</b>
                    
                    Git Book
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../../效率/git.html">
            
                <a href="../../效率/git.html">
            
                    
                        <b>1.11.4.</b>
                    
                    Git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../../效率/linux command.html">
            
                <a href="../../效率/linux command.html">
            
                    
                        <b>1.11.5.</b>
                    
                    Linux Command
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../../效率/linux 内核.html">
            
                <a href="../../效率/linux 内核.html">
            
                    
                        <b>1.11.6.</b>
                    
                    Linux 内核
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.7" data-path="../../效率/macos path.html">
            
                <a href="../../效率/macos path.html">
            
                    
                        <b>1.11.7.</b>
                    
                    Macos Path
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.8" data-path="../../效率/nfs.html">
            
                <a href="../../效率/nfs.html">
            
                    
                        <b>1.11.8.</b>
                    
                    Nfs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.9" data-path="../../效率/nginx.html">
            
                <a href="../../效率/nginx.html">
            
                    
                        <b>1.11.9.</b>
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.10" data-path="../../效率/nginx2.html">
            
                <a href="../../效率/nginx2.html">
            
                    
                        <b>1.11.10.</b>
                    
                    Nginx2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.11" data-path="../../效率/oauth2.html">
            
                <a href="../../效率/oauth2.html">
            
                    
                        <b>1.11.11.</b>
                    
                    Oauth2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.12" data-path="../../效率/ovftool.html">
            
                <a href="../../效率/ovftool.html">
            
                    
                        <b>1.11.12.</b>
                    
                    Ovftool
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.13" data-path="../../效率/readme.html">
            
                <a href="../../效率/readme.html">
            
                    
                        <b>1.11.13.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.14" data-path="../../效率/sed.html">
            
                <a href="../../效率/sed.html">
            
                    
                        <b>1.11.14.</b>
                    
                    Sed
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.15" data-path="../../效率/shell_judge.html">
            
                <a href="../../效率/shell_judge.html">
            
                    
                        <b>1.11.15.</b>
                    
                    Shell Judge
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.16" data-path="../../效率/sshpass.html">
            
                <a href="../../效率/sshpass.html">
            
                    
                        <b>1.11.16.</b>
                    
                    Sshpass
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.17" data-path="../../效率/telepresence.html">
            
                <a href="../../效率/telepresence.html">
            
                    
                        <b>1.11.17.</b>
                    
                    Telepresence
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.18" data-path="../../效率/typora.html">
            
                <a href="../../效率/typora.html">
            
                    
                        <b>1.11.18.</b>
                    
                    Typora
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.19" data-path="../../效率/url encode.html">
            
                <a href="../../效率/url encode.html">
            
                    
                        <b>1.11.19.</b>
                    
                    Url Encode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.20" data-path="../../效率/vim.html">
            
                <a href="../../效率/vim.html">
            
                    
                        <b>1.11.20.</b>
                    
                    Vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.21" data-path="../../效率/yum.html">
            
                <a href="../../效率/yum.html">
            
                    
                        <b>1.11.21.</b>
                    
                    Yum
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.22" data-path="../../效率/内网穿透.html">
            
                <a href="../../效率/内网穿透.html">
            
                    
                        <b>1.11.22.</b>
                    
                    内网穿透
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.23" data-path="../../效率/科学上网.html">
            
                <a href="../../效率/科学上网.html">
            
                    
                        <b>1.11.23.</b>
                    
                    科学上网
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.24" data-path="../../效率/证书制作.html">
            
                <a href="../../效率/证书制作.html">
            
                    
                        <b>1.11.24.</b>
                    
                    证书制作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" >
            
                <span>
            
                    
                        <b>1.12.</b>
                    
                    杂谈
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../../杂谈/论好文章和烂文章.html">
            
                <a href="../../杂谈/论好文章和烂文章.html">
            
                    
                        <b>1.12.1.</b>
                    
                    论好文章和烂文章
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../">
            
                <a href="../">
            
                    
                        <b>1.13.</b>
                    
                    测试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.13.1.</b>
                    
                    Ginkgo
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.13.1.1" data-path="ginkgo.html">
            
                <a href="ginkgo.html">
            
                    
                        <b>1.13.1.1.</b>
                    
                    Ginkgo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.1.2" data-path="ginkgo_cmd.html">
            
                <a href="ginkgo_cmd.html">
            
                    
                        <b>1.13.1.2.</b>
                    
                    Ginkgo Cmd
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.1.3" data-path="readme.html">
            
                <a href="readme.html">
            
                    
                        <b>1.13.1.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../golang-test.html">
            
                <a href="../golang-test.html">
            
                    
                        <b>1.13.2.</b>
                    
                    Golang Test
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../http测试.html">
            
                <a href="../http测试.html">
            
                    
                        <b>1.13.3.</b>
                    
                    Http测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4" data-path="../readme.html">
            
                <a href="../readme.html">
            
                    
                        <b>1.13.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.5" data-path="../其他功能.html">
            
                <a href="../其他功能.html">
            
                    
                        <b>1.13.5.</b>
                    
                    其他功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.6" data-path="../单元测试.html">
            
                <a href="../单元测试.html">
            
                    
                        <b>1.13.6.</b>
                    
                    单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.7" data-path="../单元测试2.html">
            
                <a href="../单元测试2.html">
            
                    
                        <b>1.13.7.</b>
                    
                    单元测试2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.8" data-path="../基准测试.html">
            
                <a href="../基准测试.html">
            
                    
                        <b>1.13.8.</b>
                    
                    基准测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.9" data-path="../子测试与子基准测试.html">
            
                <a href="../子测试与子基准测试.html">
            
                    
                        <b>1.13.9.</b>
                    
                    子测试与子基准测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.10" data-path="../并行测试.html">
            
                <a href="../并行测试.html">
            
                    
                        <b>1.13.10.</b>
                    
                    并行测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.11" data-path="../质量检查/">
            
                <a href="../质量检查/">
            
                    
                        <b>1.13.11.</b>
                    
                    质量检查
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.11.1" data-path="../质量检查/Sonar.html">
            
                <a href="../质量检查/Sonar.html">
            
                    
                        <b>1.13.11.1.</b>
                    
                    Sonar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.11.2" data-path="../质量检查/go_lint.html">
            
                <a href="../质量检查/go_lint.html">
            
                    
                        <b>1.13.11.2.</b>
                    
                    Go Lint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.11.3" data-path="../质量检查/readme.html">
            
                <a href="../质量检查/readme.html">
            
                    
                        <b>1.13.11.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../../规范/">
            
                <a href="../../规范/">
            
                    
                        <b>1.14.</b>
                    
                    规范
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../../规范/CodeReviewComments.html">
            
                <a href="../../规范/CodeReviewComments.html">
            
                    
                        <b>1.14.1.</b>
                    
                    CodeReviewComments
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../../规范/git规范.html">
            
                <a href="../../规范/git规范.html">
            
                    
                        <b>1.14.2.</b>
                    
                    Git规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="../../规范/golang 代码规范.html">
            
                <a href="../../规范/golang 代码规范.html">
            
                    
                        <b>1.14.3.</b>
                    
                    Golang 代码规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="../../规范/readme.html">
            
                <a href="../../规范/readme.html">
            
                    
                        <b>1.14.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.5" data-path="../../规范/代码走读.html">
            
                <a href="../../规范/代码走读.html">
            
                    
                        <b>1.14.5.</b>
                    
                    代码走读
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../../设计模式/">
            
                <a href="../../设计模式/">
            
                    
                        <b>1.15.</b>
                    
                    设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../../设计模式/readme.html">
            
                <a href="../../设计模式/readme.html">
            
                    
                        <b>1.15.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../../设计模式/创建模型/">
            
                <a href="../../设计模式/创建模型/">
            
                    
                        <b>1.15.2.</b>
                    
                    创建模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.2.1" data-path="../../设计模式/创建模型/readme.html">
            
                <a href="../../设计模式/创建模型/readme.html">
            
                    
                        <b>1.15.2.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.2" data-path="../../设计模式/创建模型/创建者模型.html">
            
                <a href="../../设计模式/创建模型/创建者模型.html">
            
                    
                        <b>1.15.2.2.</b>
                    
                    创建者模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.3" data-path="../../设计模式/创建模型/单例模式.html">
            
                <a href="../../设计模式/创建模型/单例模式.html">
            
                    
                        <b>1.15.2.3.</b>
                    
                    单例模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.4" data-path="../../设计模式/创建模型/原型模式.html">
            
                <a href="../../设计模式/创建模型/原型模式.html">
            
                    
                        <b>1.15.2.4.</b>
                    
                    原型模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.5" data-path="../../设计模式/创建模型/工厂方法.html">
            
                <a href="../../设计模式/创建模型/工厂方法.html">
            
                    
                        <b>1.15.2.5.</b>
                    
                    工厂方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.6" data-path="../../设计模式/创建模型/抽象工厂.html">
            
                <a href="../../设计模式/创建模型/抽象工厂.html">
            
                    
                        <b>1.15.2.6.</b>
                    
                    抽象工厂
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.7" data-path="../../设计模式/创建模型/简单工厂.html">
            
                <a href="../../设计模式/创建模型/简单工厂.html">
            
                    
                        <b>1.15.2.7.</b>
                    
                    简单工厂
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="../../设计模式/结构型模型/">
            
                <a href="../../设计模式/结构型模型/">
            
                    
                        <b>1.15.3.</b>
                    
                    结构型模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.3.1" data-path="../../设计模式/结构型模型/readme.html">
            
                <a href="../../设计模式/结构型模型/readme.html">
            
                    
                        <b>1.15.3.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.2" data-path="../../设计模式/结构型模型/享元模式.html">
            
                <a href="../../设计模式/结构型模型/享元模式.html">
            
                    
                        <b>1.15.3.2.</b>
                    
                    享元模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.3" data-path="../../设计模式/结构型模型/代理模式.html">
            
                <a href="../../设计模式/结构型模型/代理模式.html">
            
                    
                        <b>1.15.3.3.</b>
                    
                    代理模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.4" data-path="../../设计模式/结构型模型/外观模式.html">
            
                <a href="../../设计模式/结构型模型/外观模式.html">
            
                    
                        <b>1.15.3.4.</b>
                    
                    外观模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.5" data-path="../../设计模式/结构型模型/桥模式.html">
            
                <a href="../../设计模式/结构型模型/桥模式.html">
            
                    
                        <b>1.15.3.5.</b>
                    
                    桥模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.6" data-path="../../设计模式/结构型模型/组合模式.html">
            
                <a href="../../设计模式/结构型模型/组合模式.html">
            
                    
                        <b>1.15.3.6.</b>
                    
                    组合模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.7" data-path="../../设计模式/结构型模型/装饰模式.html">
            
                <a href="../../设计模式/结构型模型/装饰模式.html">
            
                    
                        <b>1.15.3.7.</b>
                    
                    装饰模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.8" data-path="../../设计模式/结构型模型/适配器模式.html">
            
                <a href="../../设计模式/结构型模型/适配器模式.html">
            
                    
                        <b>1.15.3.8.</b>
                    
                    适配器模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="../../设计模式/行为型模型/">
            
                <a href="../../设计模式/行为型模型/">
            
                    
                        <b>1.15.4.</b>
                    
                    行为型模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.4.1" data-path="../../设计模式/行为型模型/readme.html">
            
                <a href="../../设计模式/行为型模型/readme.html">
            
                    
                        <b>1.15.4.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.2" data-path="../../设计模式/行为型模型/中介者模式.html">
            
                <a href="../../设计模式/行为型模型/中介者模式.html">
            
                    
                        <b>1.15.4.2.</b>
                    
                    中介者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.3" data-path="../../设计模式/行为型模型/命令模式.html">
            
                <a href="../../设计模式/行为型模型/命令模式.html">
            
                    
                        <b>1.15.4.3.</b>
                    
                    命令模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.4" data-path="../../设计模式/行为型模型/备忘录模式.html">
            
                <a href="../../设计模式/行为型模型/备忘录模式.html">
            
                    
                        <b>1.15.4.4.</b>
                    
                    备忘录模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.5" data-path="../../设计模式/行为型模型/模板方法模式.html">
            
                <a href="../../设计模式/行为型模型/模板方法模式.html">
            
                    
                        <b>1.15.4.5.</b>
                    
                    模板方法模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.6" data-path="../../设计模式/行为型模型/状态模式.html">
            
                <a href="../../设计模式/行为型模型/状态模式.html">
            
                    
                        <b>1.15.4.6.</b>
                    
                    状态模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.7" data-path="../../设计模式/行为型模型/策略模式.html">
            
                <a href="../../设计模式/行为型模型/策略模式.html">
            
                    
                        <b>1.15.4.7.</b>
                    
                    策略模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.8" data-path="../../设计模式/行为型模型/职责链模式.html">
            
                <a href="../../设计模式/行为型模型/职责链模式.html">
            
                    
                        <b>1.15.4.8.</b>
                    
                    职责链模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.9" data-path="../../设计模式/行为型模型/观察者模式.html">
            
                <a href="../../设计模式/行为型模型/观察者模式.html">
            
                    
                        <b>1.15.4.9.</b>
                    
                    观察者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.10" data-path="../../设计模式/行为型模型/解释器模式.html">
            
                <a href="../../设计模式/行为型模型/解释器模式.html">
            
                    
                        <b>1.15.4.10.</b>
                    
                    解释器模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.11" data-path="../../设计模式/行为型模型/访问者模式.html">
            
                <a href="../../设计模式/行为型模型/访问者模式.html">
            
                    
                        <b>1.15.4.11.</b>
                    
                    访问者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.12" data-path="../../设计模式/行为型模型/迭代器模式.html">
            
                <a href="../../设计模式/行为型模型/迭代器模式.html">
            
                    
                        <b>1.15.4.12.</b>
                    
                    迭代器模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../.." >Ginkgo</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><a href="#ginkgo-&#x5B9E;&#x8DF5;">Ginkgo &#x5B9E;&#x8DF5;</a></li><ul><li><a href="#install">install</a></li><li><a href="#&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;">&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;</a></li><ul><li><a href="#&#x4E0D;&#x540C;&#x573A;&#x666F;&#x4E0B;&#x7684;&#x6D4B;&#x8BD5;&#x547D;&#x4EE4;">&#x4E0D;&#x540C;&#x573A;&#x666F;&#x4E0B;&#x7684;&#x6D4B;&#x8BD5;&#x547D;&#x4EE4;</a></li><li><a href="#ginkgo-&#x5E38;&#x7528;&#x547D;&#x4EE4;&#x53C2;&#x6570;&#x8BE6;&#x89E3;">ginkgo &#x5E38;&#x7528;&#x547D;&#x4EE4;&#x53C2;&#x6570;&#x8BE6;&#x89E3;</a></li></ul><li><a href="#&#x4E0D;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;">&#x4E0D;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;</a></li><li><a href="#&#x53EA;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;">&#x53EA;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;</a></li><li><a href="#&#x57FA;&#x51C6;&#x6D4B;&#x8BD5;">&#x57FA;&#x51C6;&#x6D4B;&#x8BD5;</a></li><li><a href="#ginkgo&#x4E0E;&#x6301;&#x7EED;&#x96C6;&#x6210;">Ginkgo&#x4E0E;&#x6301;&#x7EED;&#x96C6;&#x6210;</a></li><li><a href="#&#x7F16;&#x5199;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;">&#x7F16;&#x5199;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;</a></li><ul><li><a href="#&#x751F;&#x6210;-junit-xml-&#x7684;&#x8F93;&#x51FA;&#x3002;">&#x751F;&#x6210; JUnit XML &#x7684;&#x8F93;&#x51FA;&#x3002;</a></li></ul><li><a href="#&#x9879;&#x76EE;&#x5B9E;&#x8DF5;">&#x9879;&#x76EE;&#x5B9E;&#x8DF5;</a></li><li><a href="#fqa">FQA</a></li><li><a href="#link">link</a></li></ul></ul></div><a href="#ginkgo-&#x5B9E;&#x8DF5;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><!-- toc -->
<ul>
<li><a href="#ginkgo-%E5%AE%9E%E8%B7%B5">Ginkgo &#x5B9E;&#x8DF5;</a><ul>
<li><a href="#install">install</a></li>
<li><a href="#%E8%BF%90%E8%A1%8C%E6%B5%8B%E8%AF%95">&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;</a><ul>
<li><a href="#%E4%B8%8D%E5%90%8C%E5%9C%BA%E6%99%AF%E4%B8%8B%E7%9A%84%E6%B5%8B%E8%AF%95%E5%91%BD%E4%BB%A4">&#x4E0D;&#x540C;&#x573A;&#x666F;&#x4E0B;&#x7684;&#x6D4B;&#x8BD5;&#x547D;&#x4EE4;</a></li>
<li><a href="#ginkgo-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4%E5%8F%82%E6%95%B0%E8%AF%A6%E8%A7%A3">ginkgo &#x5E38;&#x7528;&#x547D;&#x4EE4;&#x53C2;&#x6570;&#x8BE6;&#x89E3;</a></li>
</ul>
</li>
<li><a href="#%E4%B8%8D%E6%89%A7%E8%A1%8C%E9%83%A8%E5%88%86%E7%94%A8%E4%BE%8B">&#x4E0D;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;</a></li>
<li><a href="#%E5%8F%AA%E6%89%A7%E8%A1%8C%E9%83%A8%E5%88%86%E7%94%A8%E4%BE%8B">&#x53EA;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;</a></li>
<li><a href="#%E5%9F%BA%E5%87%86%E6%B5%8B%E8%AF%95">&#x57FA;&#x51C6;&#x6D4B;&#x8BD5;</a></li>
<li><a href="#ginkgo%E4%B8%8E%E6%8C%81%E7%BB%AD%E9%9B%86%E6%88%90">Ginkgo&#x4E0E;&#x6301;&#x7EED;&#x96C6;&#x6210;</a></li>
<li><a href="#%E7%BC%96%E5%86%99%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8A%A5%E5%91%8A%E5%99%A8">&#x7F16;&#x5199;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;</a><ul>
<li><a href="#%E7%94%9F%E6%88%90-junit-xml-%E7%9A%84%E8%BE%93%E5%87%BA">&#x751F;&#x6210; JUnit XML &#x7684;&#x8F93;&#x51FA;&#x3002;</a></li>
</ul>
</li>
<li><a href="#%E9%A1%B9%E7%9B%AE%E5%AE%9E%E8%B7%B5">&#x9879;&#x76EE;&#x5B9E;&#x8DF5;</a></li>
<li><a href="#fqa">FQA</a></li>
<li><a href="#link">link</a></li>
</ul>
</li>
</ul>
<!-- tocstop -->
<h1 id="ginkgo-&#x5B9E;&#x8DF5;"><a name="ginkgo-&#x5B9E;&#x8DF5;" class="anchor-navigation-ex-anchor" href="#ginkgo-&#x5B9E;&#x8DF5;"><i class="fa fa-link" aria-hidden="true"></i></a>Ginkgo &#x5B9E;&#x8DF5;</h1>
<p>&#x4E00;&#x4E2A; Golang &#x7684;BDD(&#x884C;&#x4E3A;&#x9A71;&#x52A8;&#x5F00;&#x53D1;)&#x6D4B;&#x8BD5;&#x6846;&#x67B6;</p>
<p>Ginkgo&#x662F;&#x4E00;&#x4E2A;BDD&#x98CE;&#x683C;&#x7684;Go&#x6D4B;&#x8BD5;&#x6846;&#x67B6;&#xFF0C;&#x65E8;&#x5728;&#x5E2E;&#x52A9;&#x4F60;&#x6709;&#x6548;&#x5730;&#x7F16;&#x5199;&#x5BCC;&#x6709;&#x8868;&#x73B0;&#x529B;&#x7684;&#x5168;&#x65B9;&#x4F4D;&#x6D4B;&#x8BD5;&#x3002;&#x5B83;&#x6700;&#x597D;&#x4E0E;Gomega&#x5339;&#x914D;&#x5668;&#x5E93;&#x914D;&#x5BF9;&#x4F7F;&#x7528;&#xFF0C;&#x4F46;&#x5B83;&#x7684;&#x8BBE;&#x8BA1;&#x662F;&#x4E0E;&#x5339;&#x914D;&#x5668;&#x65E0;&#x5173;&#x7684;&#x3002;</p>
<h2 id="install"><a name="install" class="anchor-navigation-ex-anchor" href="#install"><i class="fa fa-link" aria-hidden="true"></i></a>install</h2>
<pre class="language-"><code>go get github.com/onsi/ginkgo/ginkgo
go get github.com/onsi/gomega/...
</code></pre><h2 id="&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;"><a name="&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;" class="anchor-navigation-ex-anchor" href="#&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;</h2>
<h3 id="&#x4E0D;&#x540C;&#x573A;&#x666F;&#x4E0B;&#x7684;&#x6D4B;&#x8BD5;&#x547D;&#x4EE4;"><a name="&#x4E0D;&#x540C;&#x573A;&#x666F;&#x4E0B;&#x7684;&#x6D4B;&#x8BD5;&#x547D;&#x4EE4;" class="anchor-navigation-ex-anchor" href="#&#x4E0D;&#x540C;&#x573A;&#x666F;&#x4E0B;&#x7684;&#x6D4B;&#x8BD5;&#x547D;&#x4EE4;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E0D;&#x540C;&#x573A;&#x666F;&#x4E0B;&#x7684;&#x6D4B;&#x8BD5;&#x547D;&#x4EE4;</h3>
<ul>
<li><p>&#x5728;&#x5F53;&#x524D;&#x76EE;&#x5F55;&#x4E0B;&#x8FD0;&#x884C;&#x8BE5;&#x5957;&#x4EF6;&#xFF0C;&#x53EA;&#x9700;&#xFF1A;</p>
<pre class="language-"><code>ginkgo #or go test
</code></pre></li>
</ul>
<ul>
<li><p>&#x8F93;&#x51FA;&#x8986;&#x76D6;&#x7387;</p>
<pre class="language-"><code># &#x8FD0;&#x884C; e2e&#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x7684;&#x6D4B;&#x8BD5;&#x6587;&#x4EF6;&#xFF0C; &#x53EA;&#x7EDF;&#x8BA1; remote &#x548C; service &#x76EE;&#x5F55;&#x4E0B;&#x7684;&#x4EE3;&#x7801;&#x8986;&#x76D6;&#x7387;
go test ./e2e -coverpkg=./remote/... -coverpkg=./service/... -covermode=count -coverprofile=coverprofile.cov 

# &#x5BF9;&#x8986;&#x76D6;&#x7387;&#x6587;&#x4EF6;&#x8F6C;&#x6362;&#x6210;txt &#x62A5;&#x544A;
go tool cover -func=coverprofile.cov -o coverprofile.txt
</code></pre></li>
</ul>
<ul>
<li><p>&#x5728;&#x5176;&#x5B83;&#x76EE;&#x5F55;&#x4E0B;&#x8FD0;&#x884C;&#x8BE5;&#x5957;&#x4EF6;&#xFF0C;&#x53EA;&#x9700;&#xFF1A;</p>
<pre class="language-"><code>ginkgo /path/to/package /path/to/other/package ...
</code></pre></li>
</ul>
<ul>
<li><p>&#x901A;&#x8FC7;&#x6B63;&#x5219;&#x5339;&#x914D;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x7684;&#x540D;&#x79F0;&#xFF0C;&#x8FDB;&#x884C;&#x4E13;&#x6CE8;&#x6D4B;&#x8BD5;</p>
<pre class="language-"><code>ginkgo --focus=&#x9879;&#x76EE; --v
</code></pre><p><img src="https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/090937.png" alt="image-20210421170936287" style="zoom: 50%;"></p>
</li>
<li><p>&#x901A;&#x8FC7;idea &#x7EDF;&#x8BA1;&#x8986;&#x76D6;&#x7387;&#x6D4B;&#x8BD5;</p>
<p><img src="https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/091152.png" alt="image-20210421171150345" style="zoom: 80%;"></p>
</li>
</ul>
<p>  &#x6548;&#x679C;1: &#x5B9A;&#x4F4D;&#x5305;&#x7EA7;&#x8986;&#x76D6;&#x7387;</p>
<p>  <img src="https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/114345.png" alt="image-20210421194344286" style="zoom:50%;"></p>
<pre class="language-"><code>&#x200B;     
</code></pre><p>  &#x6548;&#x679C;2: &#x5B9A;&#x4F4D;&#x4EE3;&#x7801;&#x884C;&#x7EA7;&#x8986;&#x76D6;&#x7387;</p>
<p><img src="https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/114507.png" alt="image-20210421194505683" style="zoom:50%;"></p>
<h3 id="ginkgo-&#x5E38;&#x7528;&#x547D;&#x4EE4;&#x53C2;&#x6570;&#x8BE6;&#x89E3;"><a name="ginkgo-&#x5E38;&#x7528;&#x547D;&#x4EE4;&#x53C2;&#x6570;&#x8BE6;&#x89E3;" class="anchor-navigation-ex-anchor" href="#ginkgo-&#x5E38;&#x7528;&#x547D;&#x4EE4;&#x53C2;&#x6570;&#x8BE6;&#x89E3;"><i class="fa fa-link" aria-hidden="true"></i></a>ginkgo &#x5E38;&#x7528;&#x547D;&#x4EE4;&#x53C2;&#x6570;&#x8BE6;&#x89E3;</h3>
<p><strong>&#x6307;&#x5B9A;&#x8FD0;&#x884C;&#x54EA;&#x4E9B;&#x6D4B;&#x8BD5;&#x5957;&#x4EF6;&#xFF1A;</strong></p>
<ul>
<li><p><code>-r</code></p>
<p>&#x4F7F;&#x7528;<code>-r</code>&#x9012;&#x5F52;&#x8FD0;&#x884C;&#x76EE;&#x6807;&#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x7684;&#x6240;&#x6709;&#x6D4B;&#x8BD5;&#x5957;&#x4EF6;&#x3002;&#x9002;&#x7528;&#x4E8E;&#x5728;&#x6240;&#x6709;&#x5305;&#x4E2D;&#x8FD0;&#x884C;&#x6240;&#x6709;&#x6D4B;&#x8BD5;&#x3002;</p>
</li>
<li><p><code>-skipPackage=PACKAGES,TO,SKIP</code></p>
<p>&#x5F53;&#x8FD0;&#x884C;&#x5E26;&#x6709; <code>-r</code> &#x7684;&#x6D4B;&#x8BD5;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x4F20;&#x9012;&#x4E00;&#x4E2A;&#x9017;&#x53F7;&#x5206;&#x9694;&#x7684;&#x6761;&#x76EE;&#x5217;&#x8868;&#x7ED9; <code>-skipPackage</code> &#x3002;&#x4EFB;&#x4F55;&#x5305;&#x7684;&#x8DEF;&#x5F84;&#x5982;&#x679C;&#x542B;&#x6709;&#x9017;&#x53F7;&#x5206;&#x9694;&#x7684;&#x6761;&#x76EE;&#x5217;&#x8868;&#x4E4B;&#x4E00;&#x5C31;&#x4F1A;&#x88AB;&#x8DF3;&#x8FC7;&#x3002;</p>
</li>
</ul>
<p><strong>&#x5E76;&#x884C;&#x6D4B;&#x8BD5;&#xFF1A;</strong></p>
<ul>
<li><p><code>-p</code></p>
<p>&#x8BBE;&#x7F6E; <code>-p</code> &#x53EF;&#x4EE5;&#x5E76;&#x884C;&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;&#x5957;&#x4EF6;&#x5E76;&#x81EA;&#x52A8;&#x7ECF;&#x68C0;&#x6D4B;&#x8282;&#x70B9;&#x6570;&#x3002;</p>
</li>
</ul>
<p><strong>&#x4FEE;&#x6539;&#x8F93;&#x51FA;&#xFF1A;</strong></p>
<ul>
<li><p><code>--v</code></p>
<p>&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x8BE5;&#x53C2;&#x6570;&#xFF0C; Ginkgo &#x9ED8;&#x8BA4;&#x62A5;&#x544A;&#x4F1A;&#x5728;&#x6BCF;&#x4E2A; spec &#x8FD0;&#x884C;&#x524D;&#x6253;&#x5370;&#x6587;&#x672C;&#x548C;&#x4F4D;&#x7F6E;&#x3002;&#x540C;&#x65F6;&#xFF0C;GinkgoWriter &#x4F1A;&#x5B9E;&#x65F6;&#x5237;&#x65B0;&#x8F93;&#x51FA;&#x5230;&#x6807;&#x51C6;&#x8F93;&#x51FA;&#x3002;</p>
</li>
<li><p><code>--trace</code></p>
<p>&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x8BE5;&#x53C2;&#x6570;&#xFF0C;Ginkgo &#x9ED8;&#x8BA4;&#x62A5;&#x544A;&#x4F1A;&#x4E3A;&#x6BCF;&#x4E2A;&#x5931;&#x8D25;&#x6253;&#x5370;&#x5168;&#x6808;&#x8DDF;&#x8E2A;&#x65E5;&#x5FD7;&#xFF0C;&#x4E0D;&#x4EC5;&#x4EC5;&#x6253;&#x5370;&#x5931;&#x8D25;&#x53D1;&#x73B0;&#x7684;&#x884C;&#x53F7;&#x3002;</p>
</li>
</ul>
<p><strong>&#x63A7;&#x5236;&#x968F;&#x673A;&#x6027;&#xFF1A;</strong></p>
<ul>
<li><p><code>--seed=SEED</code></p>
<p>&#x53D8;&#x6362; spec &#x987A;&#x5E8F;&#x65F6;&#x4F7F;&#x7528;&#x7684;&#x968F;&#x673A;&#x79CD;&#x5B50;&#x3002;</p>
</li>
<li><p><code>--randomizeAllSpecs</code></p>
<p>&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x8BE5;&#x53C2;&#x6570;&#xFF0C;&#x6240;&#x6709; spec &#x90FD;&#x4F1A;&#x88AB;&#x91CD;&#x65B0;&#x6392;&#x5E8F;&#x3002;&#x9ED8;&#x8BA4; Ginkgo &#x53EA;&#x4F1A;&#x6539;&#x53D8;&#x9876;&#x5C42;&#x5BB9;&#x5668;&#x7684;&#x987A;&#x5E8F;&#x3002;</p>
</li>
<li><p><code>--randomizeSuites</code></p>
<p>&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x8BE5;&#x53C2;&#x6570;&#x5E76;&#x8FD0;&#x884C;&#x591A;&#x4E2A; spec &#x5957;&#x4EF6;&#xFF0C;specs &#x8FD0;&#x884C;&#x7684;&#x987A;&#x5E8F;&#x4F1A;&#x88AB;&#x968F;&#x673A;&#x5316;&#x3002;</p>
</li>
</ul>
<p><strong>&#x805A;&#x7126; spec &#x548C;&#x8DF3;&#x8FC7; spec&#xFF1A;</strong></p>
<ul>
<li><p><code>--skipMeasurements</code></p>
<p>&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x8BE5;&#x53C2;&#x6570;&#xFF0C;Ginkgo &#x4F1A;&#x8DF3;&#x8FC7;&#x4EFB;&#x4F55;&#x4F60;&#x5B9A;&#x4E49;&#x7684; <code>Measure</code> spec &#x3002;</p>
</li>
<li><p><code>--focus=REGEXP</code></p>
<p>&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x8BE5;&#x53C2;&#x6570;&#xFF0C;Ginkgo &#x53EA;&#x4F1A;&#x8FD0;&#x884C;&#x5E26;&#x6709;&#x7B26;&#x5408;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F; REGEXP &#x7684;&#x63CF;&#x8FF0;&#x7684; spec&#x3002;</p>
</li>
<li><p><code>--skip=REGEXP</code></p>
<p>&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x8BE5;&#x53C2;&#x6570;&#xFF0C;Ginkgo &#x53EA;&#x4F1A;&#x8FD0;&#x884C;&#x4E0D;&#x6709;&#x7B26;&#x5408;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F; REGEXP &#x7684;&#x63CF;&#x8FF0;&#x7684; spec&#x3002;</p>
</li>
</ul>
<p><strong>&#x8FD0;&#x884C;&#x7ADE;&#x6001;&#x68C0;&#x6D4B;&#x548C;&#x6D4B;&#x8BD5;&#x8986;&#x76D6;&#x7387;&#x5DE5;&#x5177;&#xFF1A;</strong></p>
<ul>
<li><p><code>-race</code></p>
<p>&#x8BBE;&#x7F6E;<code>-race</code> &#x6765;&#x8BA9; <code>ginkgo</code> CLI &#x4F7F;&#x7528;&#x7ADE;&#x6001;&#x68C0;&#x6D4B;&#x6765;&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;&#x3002;</p>
</li>
<li><p><code>-cover</code></p>
<p>&#x8BBE;&#x7F6E;<code>-race</code> &#x6765;&#x8BA9; <code>ginkgo</code> CLI &#x4F7F;&#x7528;&#x4EE3;&#x7801;&#x8986;&#x76D6;&#x7387;&#x5206;&#x6790;&#x5DE5;&#x5177;&#x6765;&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;&#xFF08;Go 1.2+ &#x7684;&#x529F;&#x80FD;&#xFF09;&#x3002;Ginkgo &#x4F1A;&#x5728;&#x5728;&#x4E2A;&#x6D4B;&#x8BD5;&#x5305;&#x7684;&#x76EE;&#x5F55;&#x4E0B;&#x751F;&#x6210;&#x540D;&#x4E3A;<code>PACKAGE.coverprofile</code> &#x7684;&#x4EE3;&#x7801;&#x8986;&#x76D6;&#x6587;&#x4EF6;&#x3002;</p>
</li>
<li><p><code>-coverpkg=<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>PKG1</span><span class="token punctuation">&gt;</span></span>,<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>PKG2</span><span class="token punctuation">&gt;</span></span></code></p>
<p><code>-cover</code>, <code>-coverpkg</code> &#x8FD0;&#x884C;&#x4F60;&#x7684;&#x6D4B;&#x8BD5;&#x5E76;&#x5F00;&#x542F;&#x4EE3;&#x7801;&#x8986;&#x76D6;&#x7387;&#x5206;&#x6790;&#x3002;&#x7136;&#x800C;&#xFF0C; <code>-coverpkg</code> &#x5141;&#x8BB8;&#x4F60;&#x77E5;&#x9053;&#x9700;&#x8981;&#x5206;&#x6790;&#x7684;&#x5305;&#x3002;&#x5B83;&#x5141;&#x8BB8;&#x4F60;&#x83B7;&#x5F97;&#x5F53;&#x524D;&#x5305;&#x4E4B;&#x5916;&#x7684;&#x5305;&#x7684;&#x4EE3;&#x7801;&#x8986;&#x76D6;&#x7387;&#xFF0C;&#x8FD9;&#x5BF9;&#x96C6;&#x6210;&#x6D4B;&#x8BD5;&#x5F88;&#x6709;&#x7528;&#x3002;&#x6CE8;&#x610F;&#xFF0C;&#x5B83;&#x9ED8;&#x8BA4;&#x4E0D;&#x5728;&#x5F53;&#x524D;&#x5305;&#x8FD0;&#x884C;&#x8986;&#x76D6;&#x7387;&#x5206;&#x6790;&#xFF0C;&#x4F60;&#x9700;&#x8981;&#x5236;&#x5B9A;&#x6240;&#x6709;&#x4F60;&#x60F3;&#x5206;&#x6790;&#x7684;&#x5305;&#x3002;&#x5305;&#x540D;&#x5E94;&#x8BE5;&#x662F;&#x5168;&#x5199;&#xFF0C;&#x4F8B;&#x5982;<code>github.com/onsi/ginkgo/reporters/stenographer</code>&#x3002;</p>
</li>
<li><p><code>-coverprofile=<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>FILENAME</span><span class="token punctuation">&gt;</span></span></code></p>
<p>&#x4F7F;&#x7528; <code>FILENAME</code> &#x91CD;&#x547D;&#x540D;&#x4EE3;&#x7801;&#x8986;&#x76D6;&#x7387;&#x6587;&#x4EF6;&#x7684;&#x540D;&#x5B57;&#x3002;</p>
</li>
</ul>
<p><strong>&#x5931;&#x8D25;&#x884C;&#x4E3A;&#xFF1A;</strong></p>
<ul>
<li><p><code>--failOnPending</code></p>
<p>&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x8BE5;&#x53C2;&#x6570;&#xFF0C;Ginkgo &#x4F1A;&#x5728;&#x6709;&#x6682;&#x505C; spec &#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x4F7F;&#x5957;&#x4EF6;&#x5931;&#x8D25;&#x3002;</p>
</li>
<li><p><code>--failFast</code></p>
<p>&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x8BE5;&#x53C2;&#x6570;&#xFF0C;Ginkgo &#x4F1A;&#x5728;&#x7B2C;&#x4E00;&#x4E2A; sepc &#x65F6;&#x5019;&#x540E;&#x7ACB;&#x5373;&#x505C;&#x6B62;&#x5957;&#x4EF6;&#x3002;</p>
</li>
</ul>
<h2 id="&#x4E0D;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;"><a name="&#x4E0D;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;" class="anchor-navigation-ex-anchor" href="#&#x4E0D;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E0D;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;</h2>
<p>&#x60A8;&#x53EF;&#x4EE5;&#x5C06;&#x5355;&#x4E2A;Spec&#x6216;&#x5BB9;&#x5668;&#x6807;&#x8BB0;&#x4E3A;&#x5F85;&#x5B9A;&#x3002;&#x8FD9;&#x5C06;&#x963B;&#x6B62;Spec&#xFF08;&#x6216;&#x8005;&#x5BB9;&#x5668;&#x4E2D;&#x7684;Specs&#xFF09;&#x8FD0;&#x884C;&#x3002;&#x60A8;&#x53EF;&#x4EE5;&#x5728;&#x60A8;&#x7684;Describe, Context, It &#x548C; Measure&#x524D;&#x9762;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;P&#x6216;&#x8005;&#x4E00;&#x4E2A;X&#x6765;&#x5B9E;&#x73B0;&#x8FD9;&#x4E00;&#x70B9;&#xFF1A;PDescribe(&quot;some behavior&quot;, func() { ... })</p>
<pre class="language-"><code>PContext(&quot;some scenario&quot;, func() { ... })
PIt(&quot;some assertion&quot;)
PMeasure(&quot;some measurement&quot;)

XDescribe(&quot;some behavior&quot;, func() { ... })
XContext(&quot;some scenario&quot;, func() { ... })
XIt(&quot;some assertion&quot;)
XMeasure(&quot;some measurement&quot;)
</code></pre><p>&#x9ED8;&#x8BA4;&#xFF0C;Ginkgo&#x5C06;&#x4F1A;&#x6253;&#x51FA;&#x6BCF;&#x4E00;&#x4E2A;&#x5904;&#x4E8E;Pending&#x6001;&#x7684;Spec&#x7684;&#x8BF4;&#x660E;&#x3002;&#x60A8;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8BBE;&#x7F6E;--noisyPendings=false&#x6807;&#x7B7E;&#x6765;&#x5173;&#x95ED;&#x5B83;&#x3002;</p>
<p>&#x5728;&#x7F16;&#x8BD1;&#x65F6;&#xFF0C;&#x4F7F;&#x7528;P&#x548C;X&#x5C06;&#x89C4;&#x683C;&#x6807;&#x8BB0;&#x4E3A;Pending&#x6001;&#x3002;&#x5982;&#x679C;&#x60A8;&#x9700;&#x8981;&#x5728;&#x8FD0;&#x884C;&#x65F6;&#xFF08;&#x53EF;&#x80FD;&#x662F;&#x7531;&#x4E8E;&#x53EA;&#x80FD;&#x5728;&#x8FD0;&#x884C;&#x65F6;&#x624D;&#x77E5;&#x9053;&#x7EA6;&#x675F;&#xFF09;&#x8DF3;&#x8FC7;&#x4E00;&#x4E2A;&#x89C4;&#x683C;&#x3002;&#x60A8;&#x53EF;&#x4EE5;&#x5728;&#x60A8;&#x7684;&#x6D4B;&#x8BD5;&#x4E2D;&#x8C03;&#x7528;Skip&#xFF1A;</p>
<pre class="language-"><code>It(&quot;should do something, if it can&quot;, func() {
    if !someCondition {
        Skip(&quot;special condition wasn&apos;t met&quot;)
    }

    // assertions go here
})
</code></pre><h2 id="&#x53EA;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;"><a name="&#x53EA;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;" class="anchor-navigation-ex-anchor" href="#&#x53EA;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x53EA;&#x6267;&#x884C;&#x90E8;&#x5206;&#x7528;&#x4F8B;</h2>
<p>&#x5F53;&#x5F00;&#x53D1;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8FD0;&#x884C;&#x89C4;&#x683C;&#x7684;&#x5B50;&#x96C6;&#x5C06;&#x4F1A;&#x975E;&#x5E38;&#x65B9;&#x4FBF;&#x3002;Ginkgo&#x6709;&#x4E24;&#x79CD;&#x673A;&#x5236;&#x53EF;&#x4EE5;&#x8BA9;&#x60A8;&#x4E13;&#x6CE8;&#x4E8E;&#x7279;&#x5B9A;&#x89C4;&#x683C;&#xFF1A;</p>
<p>1&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x5728;<code>Descirbe</code>, <code>Context</code> &#x548C; <code>It</code>&#x524D;&#x9762;&#x6DFB;&#x52A0;F&#x4EE5;&#x7F16;&#x7A0B;&#x65B9;&#x5F0F;&#x4E13;&#x6CE8;&#x4E8E;&#x5355;&#x4E2A;&#x89C4;&#x683C;&#x6216;&#x8005;&#x6574;&#x4E2A;&#x5BB9;&#x5668;&#x7684;&#x89C4;&#x683C;&#xFF1A;</p>
<pre class="language-"><code class="lang-go"> <span class="token function">FDescribe</span><span class="token punctuation">(</span><span class="token string">&quot;some behavior&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token operator">...</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
 <span class="token function">FContext</span><span class="token punctuation">(</span><span class="token string">&quot;some scenario&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token operator">...</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
 <span class="token function">FIt</span><span class="token punctuation">(</span><span class="token string">&quot;some assertion&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token operator">...</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre>
<p>&#x8FD9;&#x6837;&#x505A;&#x662F;&#x4E3A;&#x4E86;&#x6307;&#x793A;Ginkgo&#x53EA;&#x8FD0;&#x884C;&#x8FD9;&#x4E9B;&#x89C4;&#x683C;&#x3002;&#x8981;&#x8FD0;&#x884C;&#x6240;&#x6709;&#x89C4;&#x683C;&#xFF0C;&#x60A8;&#x9700;&#x8981;&#x9000;&#x56DE;&#x53BB;&#x5E76;&#x5220;&#x9664;&#x6240;&#x6709;&#x7684;F&#x3002;</p>
<p>2&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<code>--focus = REGEXP</code>&#x548C;/&#x6216;<code>--skip = REGEXP</code>&#x6807;&#x7B7E;&#x6765;&#x4F20;&#x9012;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x3002;Ginkgo&#x53EA;&#x8FD0;&#x884C; <code>focus</code> &#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x5339;&#x914D;&#x7684;&#x89C4;&#x683C;&#xFF0C;&#x4E0D;&#x8FD0;&#x884C;<code>skip</code>&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x5339;&#x914D;&#x7684;&#x89C4;&#x683C;&#x3002;</p>
<p>3&#xFF0C;&#x4E3A;&#x4E86;&#x9632;&#x6B62;&#x89C4;&#x683C;&#x4E0D;&#x80FD;&#x5728;&#x6D4B;&#x8BD5;&#x7EC4;&#x4E4B;&#x95F4;&#x63D0;&#x4F9B;&#x8DB3;&#x591F;&#x7684;&#x7B49;&#x7EA7;&#x533A;&#x5206;&#xFF0C;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;<code>--regexScansFilePath</code>&#x9009;&#x9879;&#xFF0C;&#x5C06;&#x76EE;&#x5F55;&#x52A0;&#x8F7D;&#x5230;<code>focus</code>&#x548C;<code>skip</code>&#x7684;&#x5339;&#x914D;&#x4E2D;&#x3002;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;&#x5982;&#x679C;&#x6D4B;&#x8BD5;&#x7684;&#x521D;&#x59CB;&#x4EE3;&#x7801;&#x4F4D;&#x7F6E;&#x662F;<code>test/a/b/c/my_test.go</code>&#xFF0C;&#x53EF;&#x4EE5;&#x5C06;<code>--focus=/b/</code>&#x548C;<code>--regexScansFilePath=true</code>&#x7ED3;&#x5408;&#x8D77;&#x6765;&#xFF0C;&#x4E13;&#x6CE8;&#x4E8E;&#x5305;&#x542B;&#x8DEF;&#x5F84;<code>/b/</code>&#x7684;&#x6D4B;&#x8BD5;&#x3002;&#x6B64;&#x529F;&#x80FD;&#x5BF9;&#x4E8E;&#x5728;&#x521B;&#x5EFA;&#x8FD9;&#x4E9B;&#x6D4B;&#x8BD5;&#x7684;&#x539F;&#x59CB;&#x76EE;&#x5F55;&#x7684;&#x884C;&#x4E2D;&#x8FC7;&#x6EE4;&#x4E8C;&#x8FDB;&#x5236;&#x5DE5;&#x4EF6;&#x4E2D;&#x7684;&#x6D4B;&#x8BD5;&#x662F;&#x5341;&#x5206;&#x6709;&#x7528;&#x7684;&#x3002;&#x4F46;&#x7406;&#x60F3;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x60A8;&#x5E94;&#x8BE5;&#x9075;&#x5FAA;&#x6700;&#x5927;&#x9650;&#x5EA6;&#x5730;&#x51CF;&#x5C11;&#x4F7F;&#x7528;&#x6B64;&#x529F;&#x80FD;&#x7684;&#x9700;&#x6C42;&#x6765;&#x7EC4;&#x7EC7;&#x60A8;&#x7684;&#x89C4;&#x683C;&#x3002;</p>
<p>&#x5F53;Ginkgo&#x68C0;&#x6D4B;&#x5230;&#x4EE5;&#x7F16;&#x7A0B;&#x5F0F;&#x4E3A;&#x6D4B;&#x8BD5;&#x4E2D;&#x5FC3;&#x7684;&#x6D4B;&#x8BD5;&#x7EC4;&#x4EF6;&#x65F6;&#xFF0C;&#x5B83;&#x5C06;&#x4EE5;&#x975E;&#x96F6;&#x72B6;&#x6001;&#x7801;&#x9000;&#x51FA;&#x3002;&#x8FD9;&#x6709;&#x52A9;&#x4E8E;&#x68C0;&#x6D4B;CI&#x7CFB;&#x7EDF;&#x4E0A;&#x9519;&#x8BEF;&#x63D0;&#x4EA4;&#x7684;&#x91CD;&#x70B9;&#x6D4B;&#x8BD5;&#x3002;&#x5F53;&#x4F20;&#x5165;&#x547D;&#x4EE4;&#x884C;<code>focus</code>/<code>skip</code>&#x6807;&#x5FD7;&#x65F6;&#xFF0C;Ginkgo&#x4EE5;<code>0</code>&#x72B6;&#x6001;&#x7801;&#x9000;&#x51FA;&#x3002;&#x5982;&#x679C;&#x8981;&#x5C06;&#x6D4B;&#x8BD5;&#x96C6;&#x4E2D;&#x5728;CI&#x7CFB;&#x7EDF;&#x4E0A;&#xFF0C;&#x5219;&#x5E94;&#x8BE5;&#x663E;&#x793A;&#x5730;&#x4F20;&#x5165;<code>-focus</code>&#x6216;<code>-skip</code>&#x6807;&#x5FD7;&#x3002;</p>
<p>&#x5D4C;&#x5957;&#x7684;&#x4EE5;&#x7F16;&#x7A0B;&#x65B9;&#x5F0F;&#x4E3A;&#x91CD;&#x70B9;&#x7684;&#x89C4;&#x683C;&#x9075;&#x5FAA;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;&#x89C4;&#x5219;&#xFF1A;&#x5982;&#x679C;&#x53F6;&#x5B50;&#x8282;&#x70B9;&#x88AB;&#x6807;&#x8BB0;&#x4E3A;&#x91CD;&#x70B9;&#xFF0C;&#x90A3;&#x4E48;&#x5B83;&#x7684;&#x88AB;&#x6807;&#x8BB0;&#x4E3A;&#x91CD;&#x70B9;&#x7684;&#x4EFB;&#x4F55;&#x6839;&#x7ED3;&#x70B9;&#x5C06;&#x53D8;&#x4E3A;&#x975E;&#x91CD;&#x70B9;&#x3002;&#x6839;&#x636E;&#x8FD9;&#x4E2A;&#x89C4;&#x5219;&#xFF0C;&#x6807;&#x8BB0;&#x4E3A;&#x91CD;&#x70B9;&#x7684;&#x5144;&#x5F1F;&#x53F6;&#x5B50;&#x8282;&#x70B9;&#xFF08;&#x65E0;&#x8BBA;&#x76F8;&#x5BF9;&#x6DF1;&#x5EA6;&#x5982;&#x4F55;&#xFF09;&#xFF0C;&#x5C06;&#x4F1A;&#x8FD0;&#x884C;&#x65E0;&#x8BBA;&#x5171;&#x4EAB;&#x7684;&#x6839;&#x7ED3;&#x70B9;&#x662F;&#x5426;&#x662F;&#x91CD;&#x70B9;&#xFF1B;&#x975E;&#x91CD;&#x70B9;&#x7684;&#x5144;&#x5F1F;&#x8282;&#x70B9;&#x5C06;&#x4E0D;&#x4F1A;&#x8FD0;&#x884C;&#x65E0;&#x8BBA;&#x5171;&#x4EAB;&#x7684;&#x6839;&#x7ED3;&#x70B9;&#x6216;&#x8005;&#x76F8;&#x5BF9;&#x6DF1;&#x5EA6;&#x7684;&#x5144;&#x5F1F;&#x59D0;&#x59B9;&#x662F;&#x5426;&#x662F;&#x91CD;&#x70B9;&#x3002;&#x66F4;&#x7B80;&#x5355;&#x5730;&#xFF1A;</p>
<pre class="language-"><code class="lang-go"><span class="token function">FDescribe</span><span class="token punctuation">(</span><span class="token string">&quot;outer describe&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;A&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token operator">...</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;B&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token operator">...</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre>
<p>&#x5C06;&#x4F1A;&#x8FD0;&#x884C;&#x6240;&#x6709;&#x7684;<code>It</code>&#xFF0C;&#x4F46;&#x662F;&#xFF1A;</p>
<pre class="language-"><code class="lang-go"><span class="token function">FDescribe</span><span class="token punctuation">(</span><span class="token string">&quot;outer describe&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;A&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token operator">...</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token function">FIt</span><span class="token punctuation">(</span><span class="token string">&quot;B&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token operator">...</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre>
<p>&#x53EA;&#x4F1A;&#x8FD0;&#x884C;<code>B</code>&#xFF0C;&#x8FD9;&#x79CD;&#x884C;&#x4E3A;&#x503E;&#x5411;&#x4E8E;&#x66F4;&#x7D27;&#x5BC6;&#x5730;&#x53CD;&#x5E94;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x5728;&#x6D4B;&#x8BD5;&#x5957;&#x4EF6;&#x4E0A;&#x8FDB;&#x884C;&#x8FED;&#x4EE3;&#x65F6;&#x7684;&#x5B9E;&#x9645;&#x610F;&#x56FE;&#x3002;</p>
<p>&#x7A0B;&#x5E8F;&#x5316;&#x65B9;&#x6CD5;&#x548C;<code>--focus=REGEXP</code>/<code>--skip=REGEXP</code>&#x65B9;&#x6CD5;&#x662F;&#x4E92;&#x65A5;&#x7684;&#x3002;&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x884C;&#x6807;&#x5FD7;&#x5C06;&#x8986;&#x76D6;&#x7A0B;&#x5E8F;&#x5316;&#x7684;&#x91CD;&#x70B9;&#x3002;</p>
<p>&#x4E13;&#x6CE8;&#x4E8E;&#x6CA1;&#x6709;<code>It</code>&#x6216;&#x8005;<code>Measure</code>&#x7684;&#x53F6;&#x5B50;&#x8282;&#x70B9;&#x7684;&#x5BB9;&#x5668;&#x662F;&#x6CA1;&#x6709;&#x610F;&#x4E49;&#x7684;&#x3002;&#x7531;&#x4E8E;&#x5BB9;&#x5668;&#x4E2D;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x4E1C;&#x897F;&#x53EF;&#x4EE5;&#x8FD0;&#x884C;&#xFF0C;&#x56E0;&#x6B64;&#x5B9E;&#x9645;&#x4E0A;&#xFF0C;Ginkgo&#x5FFD;&#x7565;&#x4E86;&#x5B83;&#x3002;</p>
<p>&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x884C;&#x6807;&#x5FD7;&#x65F6;&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x6307;&#x5B9A;<code>--focus</code>&#x548C;<code>--skip</code>&#x4E2D;&#x7684;&#x4E00;&#x4E2A;&#x6216;&#x4E24;&#x4E2A;&#x3002;&#x5982;&#x679C;&#x90FD;&#x6307;&#x5B9A;&#x4E86;&#xFF0C;&#x5219;&#x4ED6;&#x4EEC;&#x7684;&#x9650;&#x5236;&#x5C06;&#x90FD;&#x4F1A;&#x751F;&#x6548;&#x3002;</p>
<p>&#x60A8;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8FD0;&#x884C;<code>ginkgo unfocus</code>&#x6765;&#x53D6;&#x6D88;&#x4EE5;&#x7F16;&#x7A0B;&#x4E3A;&#x4E2D;&#x5FC3;&#x7684;&#x6D4B;&#x8BD5;&#x7684;&#x5173;&#x6CE8;&#x3002;&#x8FD9;&#x5C06;&#x4ECE;&#x60A8;&#x5F53;&#x524D;&#x76EE;&#x5F55;&#x4E2D;&#x53EF;&#x80FD;&#x5177;&#x6709;&#x4EFB;&#x4F55;<code>FDescribe</code>&#xFF0C;<code>FContext</code>&#x548C;<code>FIt</code>&#x7684;&#x6D4B;&#x8BD5;&#x4E2D;&#x5220;&#x9664;<code>F</code>&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x60F3;&#x8DF3;&#x8FC7;&#x6574;&#x4E2A;&#x5305;&#xFF08;&#x5F53;&#x4F7F;&#x7528;<code>-r</code>&#x6807;&#x5FD7;&#x9012;&#x5F52;&#x8FD0;&#x884C;<code>ginkgo</code>&#x65F6;&#xFF09;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x5C06;&#x9017;&#x53F7;&#x5206;&#x9694;&#x7684;&#x5217;&#x8868;&#x4F20;&#x9012;&#x7ED9;<code>--skipPackage = PACKAGES, TO, SKIP</code>&#x3002;&#x5305;&#x542B;&#x5217;&#x8868;&#x4E2D;&#x76EE;&#x5F55;&#x7684;&#x4EFB;&#x4F55;&#x5305;&#x90FD;&#x5C06;&#x4F1A;&#x88AB;&#x5FFD;&#x7565;&#x3002;</p>
<h2 id="&#x57FA;&#x51C6;&#x6D4B;&#x8BD5;"><a name="&#x57FA;&#x51C6;&#x6D4B;&#x8BD5;" class="anchor-navigation-ex-anchor" href="#&#x57FA;&#x51C6;&#x6D4B;&#x8BD5;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x57FA;&#x51C6;&#x6D4B;&#x8BD5;</h2>
<p>Ginkgo &#x5141;&#x8BB8;&#x4F60;&#x4F7F;&#x7528;Measure&#x5757;&#x6765;&#x6D4B;&#x91CF;&#x4F60;&#x7684;&#x4EE3;&#x7801;&#x7684;&#x6027;&#x80FD;&#x3002;Measure&#x5757;&#x53EF;&#x4EE5;&#x8FD0;&#x884C;&#x5728;&#x4EFB;&#x4F55;It&#x5757;&#x53EF;&#x4EE5;&#x8FD0;&#x884C;&#x7684;&#x5730;&#x65B9;--&#x6BCF;&#x4E00;&#x4E2A;Meature&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x89C4;&#x683C;&#x3002;&#x4F20;&#x9012;&#x7ED9;Measure&#x7684;&#x95ED;&#x5305;&#x51FD;&#x6570;&#x5FC5;&#x987B;&#x4F7F;&#x7528;Benchmarker&#x53C2;&#x6570;&#x3002;Benchmarker&#x7528;&#x4E8E;&#x6D4B;&#x91CF;&#x8FD0;&#x884C;&#x65F6;&#x95F4;&#x5E76;&#x8BB0;&#x5F55;&#x4EFB;&#x610F;&#x6570;&#x503C;&#x3002;&#x4F60;&#x4E5F;&#x5FC5;&#x987B;&#x5728;&#x8BE5;&#x95ED;&#x5305;&#x51FD;&#x6570;&#x4E4B;&#x540E;&#x4F20;&#x9012;&#x4E00;&#x4E2A;&#x6574;&#x578B;&#x53C2;&#x6570;&#x7ED9;Measure&#xFF0C;&#x5B83;&#x8868;&#x793A;Measure&#x5C06;&#x6267;&#x884C;&#x7684;&#x4F60;&#x7684;&#x4EE3;&#x7801;&#x7684;&#x6837;&#x672C;&#x6570;&#x3002;&#x4F8B;&#x5982;&#xFF1A;</p>
<pre class="language-"><code>Measure(&quot;it should do something hard efficiently&quot;, func(b Benchmarker) {
    runtime := b.Time(&quot;runtime&quot;, func() {
        output := SomethingHard()
        Expect(output).To(Equal(17))
    })

    &#x3A9;(runtime.Seconds()).Should(BeNumerically(&quot;&lt;&quot;, 0.2), &quot;SomethingHard() shouldn&apos;t take too long.&quot;)

    b.RecordValue(&quot;disk usage (in MB)&quot;, HowMuchDiskSpaceDidYouUse())
}, 10)
</code></pre><h2 id="ginkgo&#x4E0E;&#x6301;&#x7EED;&#x96C6;&#x6210;"><a name="ginkgo&#x4E0E;&#x6301;&#x7EED;&#x96C6;&#x6210;" class="anchor-navigation-ex-anchor" href="#ginkgo&#x4E0E;&#x6301;&#x7EED;&#x96C6;&#x6210;"><i class="fa fa-link" aria-hidden="true"></i></a>Ginkgo&#x4E0E;&#x6301;&#x7EED;&#x96C6;&#x6210;</h2>
<pre class="language-"><code>ginkgo -r --randomizeAllSpecs --randomizeSuites --failOnPending --cover --trace --race --progress
</code></pre><h2 id="&#x7F16;&#x5199;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;"><a name="&#x7F16;&#x5199;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;" class="anchor-navigation-ex-anchor" href="#&#x7F16;&#x5199;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7F16;&#x5199;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;</h2>
<p>&#x56E0;&#x4E3A; Ginkgo &#x7684;&#x9ED8;&#x8BA4;&#x62A5;&#x544A;&#x5668;&#x63D0;&#x4F9B;&#x4E86;&#x5168;&#x9762;&#x7684;&#x529F;&#x80FD;&#xFF0C; Ginkgo &#x5F88;&#x5BB9;&#x6613;&#x540C;&#x65F6;&#x5199;&#x548C;&#x8FD0;&#x884C;&#x591A;&#x4E2A;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;&#x3002;&#x8FD9;&#x6709;&#x5F88;&#x591A;&#x4F7F;&#x7528;&#x6848;&#x4F8B;&#x3002;&#x4F60;&#x80FD;&#x5B9E;&#x73B0;&#x4E00;&#x4E2A;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;&#x4F7F;&#x4F60;&#x7684;&#x6301;&#x7EED;&#x96C6;&#x6210;&#x65B9;&#x6848;&#x652F;&#x6301;&#x4E00;&#x4E2A;&#x7279;&#x6B8A;&#x7684;&#x8F93;&#x51FA;&#x683C;&#x5F0F;&#xFF0C;&#x6216;&#x8005;&#x4F60;&#x80FD;&#x5B9E;&#x73B0;&#x4E00;&#x4E2A;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;&#x4ECE;Ginkgo <code>Measure</code> &#x8282;&#x70B9;<a href="https://ke-chain.github.io/ginkgodoc/#measuring-time" target="_blank">&#x805A;&#x5408;&#x6570;&#x636E;</a> &#x548C;&#x5236;&#x9020; HTML &#x6216; CSV &#x62A5;&#x544A;&#xFF08;&#x6216;&#x8005;&#x751A;&#x81F3;&#x56FE;&#x8868;&#xFF01;&#xFF09;&#x3002;</p>
<p>&#x5728; Ginkgo &#x4E2D;&#xFF0C;&#x4E00;&#x4E2A;&#x62A5;&#x544A;&#x5668;&#x5FC5;&#x987B;&#x6EE1;&#x8DB3; <code>Reporter</code> &#x63A5;&#x53E3;&#xFF1A;</p>
<pre class="language-"><code>type Reporter interface {
    SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary)
    BeforeSuiteDidRun(setupSummary *types.SetupSummary)
    SpecWillRun(specSummary *types.SpecSummary)
    SpecDidComplete(specSummary *types.SpecSummary)
    AfterSuiteDidRun(setupSummary *types.SetupSummary)
    SpecSuiteDidEnd(summary *types.SuiteSummary)
}
</code></pre><p>&#x65B9;&#x6CD5;&#x7684;&#x540D;&#x5B57;&#x5E94;&#x8BE5;&#x80FD;&#x662F;&#x81EA;&#x89E3;&#x91CA;&#x7684;&#x3002;&#x4E3A;&#x4E86;&#x4F7F;&#x4F60;&#x83B7;&#x5F97;&#x5408;&#x7406;&#x53EF;&#x7528;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x786E;&#x4FDD;&#x6DF1;&#x5165;&#x7406;&#x89E3; <code>SuiteSummary</code> &#x548C; <code>SpecSummary</code> &#x3002;&#x5982;&#x679C;&#x4F60;&#x5199;&#x4E86;&#x4E00;&#x4E2A;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;&#xFF0C;&#x7528;&#x4E8E;&#x83B7;&#x53D6; <code>Measure</code> &#x8282;&#x70B9;&#x4EA7;&#x751F;&#x7684;&#x57FA;&#x51C6;&#x6D4B;&#x8BD5;&#x6570;&#x636E;&#xFF0C;&#x4F60;&#x4F1A;&#x60F3;&#x770B;&#x770B; <code>ExampleSummary.Measurements</code> &#x63D0;&#x4F9B;&#x7684;&#x7ED3;&#x6784;&#x4F53; <code>ExampleMeasurement</code> &#x3002;</p>
<p>&#x4E00;&#x65E6;&#x4F60;&#x521B;&#x5EFA;&#x4E86;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;&#xFF0C;&#x4F60;&#x53EF;&#x80FD;&#x8981;&#x66FF;&#x6362;&#x4F60;&#x6D4B;&#x8BD5;&#x5957;&#x4EF6;&#x4E2D;&#x7684;<code>RunSpecs</code>&#x547D;&#x4EE4;&#xFF0C;&#x6765;&#x4F20;&#x5165;&#x8BE5;&#x5B9E;&#x4F8B;&#x5230; Ginkgo&#xFF0C;&#x8981;&#x4E48;&#x8FD9;&#x6837;&#xFF1A;</p>
<pre class="language-"><code>RunSpecsWithDefaultAndCustomReporters(t *testing.T, description string, reporters []Reporter)
</code></pre><p>&#x8981;&#x4E48;&#x8FD9;&#x6837;</p>
<pre class="language-"><code>RunSpecsWithCustomReporters(t *testing.T, description string, reporters []Reporter)
</code></pre><p><code>RunSpecsWithDefaultAndCustomReporters</code> &#x4F1A;&#x8FD0;&#x884C;&#x4F60;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;&#x548C; Ginkgo &#x9ED8;&#x8BA4;&#x62A5;&#x544A;&#x5668;&#x3002;<code>RunSpecsWithCustomReporters</code> &#x53EA;&#x4F1A;&#x8FD0;&#x884C;&#x4F60;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x5E0C;&#x671B;&#x8FD0;&#x884C;&#x5E76;&#x884C;&#x6D4B;&#x8BD5;&#xFF0C;&#x4F60;&#x4E0D;&#x5E94;&#x8BE5;&#x4F7F;&#x7528; <code>RunSpecsWithCustomReporters</code>&#xFF0C;&#x56E0;&#x4E3A;&#x9ED8;&#x8BA4;&#x62A5;&#x544A;&#x5668;&#x662F; ginkgo CLI &#x6D4B;&#x8BD5;&#x8F93;&#x51FA;&#x6D41;&#x7684;&#x91CD;&#x8981;&#x89D2;&#x8272;&#x3002;</p>
<h3 id="&#x751F;&#x6210;-junit-xml-&#x7684;&#x8F93;&#x51FA;&#x3002;"><a name="&#x751F;&#x6210;-junit-xml-&#x7684;&#x8F93;&#x51FA;&#x3002;" class="anchor-navigation-ex-anchor" href="#&#x751F;&#x6210;-junit-xml-&#x7684;&#x8F93;&#x51FA;&#x3002;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x751F;&#x6210; JUnit XML &#x7684;&#x8F93;&#x51FA;&#x3002;</h3>
<p>&#x200B;    Ginkgo &#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A; <a href="https://onsi.github.io/ginkgo/#writing-custom-reporters" target="_blank">&#x81EA;&#x5B9A;&#x4E49;&#x62A5;&#x544A;&#x5668;</a> &#x6765;&#x751F;&#x6210; JUnit &#x517C;&#x5BB9;&#x7684; XML &#x8F93;&#x51FA;&#x3002;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x793A;&#x4F8B;&#x5F15;&#x5BFC;&#x6587;&#x4EF6;&#xFF0C;&#x8BE5;&#x6587;&#x4EF6;&#x5B9E;&#x4F8B;&#x5316;&#x4E86;JUnit&#x62A5;&#x544A;&#x7A0B;&#x5E8F;&#x5E76;&#x5C06;&#x5176;&#x4F20;&#x9012;&#x7ED9;&#x6D4B;&#x8BD5;&#x8FD0;&#x884C;&#x5668;&#xFF1A;</p>
<pre class="language-"><code>package foo_test

import (
    . &quot;github.com/onsi/ginkgo&quot;
    . &quot;github.com/onsi/gomega&quot;

    &quot;github.com/onsi/ginkgo/reporters&quot;
    &quot;testing&quot;
)

func TestFoo(t *testing.T) {
    RegisterFailHandler(Fail)
    junitReporter := reporters.NewJUnitReporter(&quot;junit.xml&quot;)
    RunSpecsWithDefaultAndCustomReporters(t, &quot;Foo Suite&quot;, []Reporter{junitReporter})
}
</code></pre><p>&#x200B;    &#x8FD9;&#x4F1A;&#x5728;&#x5305;&#x542B;&#x4F60;&#x6D4B;&#x8BD5;&#x7684;&#x76EE;&#x5F55;&#x4E2D;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x540D;&#x4E3A; &#x201C;junit.xml&#x201D; &#x7684;&#x6587;&#x4EF6;&#x3002;&#x8FD9;&#x4E2A; xml &#x6587;&#x4EF6;&#x517C;&#x5BB9;&#x6700;&#x65B0;&#x7248;&#x672C;&#x7684; Jenkins JUnit &#x63D2;&#x4EF6;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x60F3;&#x8981;&#x5E76;&#x884C;&#x8FD0;&#x884C;&#x4F60;&#x7684;&#x6D4B;&#x8BD5;&#xFF0C;&#x4F60;&#x9700;&#x8981;&#x8BA9;&#x4F60;&#x7684; JUnit xml &#x6587;&#x4EF6;&#x5E26;&#x6709;&#x5E76;&#x884C;&#x8282;&#x70B9;&#x53F7;&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x8FD9;&#x6837;&#x505A;&#xFF1A;</p>
<pre class="language-"><code>junitReporter := reporters.NewJUnitReporter(fmt.Sprintf(&quot;junit_%d.xml&quot;, config.GinkgoConfig.ParallelNode))
</code></pre><p>&#x200B;    &#x6CE8;&#x610F;&#xFF0C;&#x4F60;&#x9700;&#x8981;&#x5BFC;&#x5165; <code>fmt</code> &#x548C; <code>github.com/onsi/ginkgo/config</code> &#xFF0C;&#x4EE5;&#x4F7F;&#x5176;&#x6B63;&#x5E38;&#x5DE5;&#x4F5C;&#x3002;&#x8FD9;&#x4F1A;&#x4E3A;&#x6BCF;&#x4E2A;&#x5E76;&#x884C;&#x8282;&#x70B9;&#x751F;&#x6210;&#x4E00;&#x4E2A; xml &#x6587;&#x4EF6;&#x3002; Jenkins JUnit &#x63D2;&#x4EF6;&#xFF08;&#x4E3E;&#x4F8B;&#xFF09; &#x4F1A;&#x81EA;&#x52A8;&#x805A;&#x5408;&#x6240;&#x6709;&#x8FD9;&#x4E9B;&#x6587;&#x4EF6;&#x7684;&#x6570;&#x636E;&#x3002;</p>
<h2 id="&#x9879;&#x76EE;&#x5B9E;&#x8DF5;"><a name="&#x9879;&#x76EE;&#x5B9E;&#x8DF5;" class="anchor-navigation-ex-anchor" href="#&#x9879;&#x76EE;&#x5B9E;&#x8DF5;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9879;&#x76EE;&#x5B9E;&#x8DF5;</h2>
<ol>
<li><p>&#x5728;model &#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x6784;&#x5EFA;moke &#x53D8;&#x91CF;&#xFF0C; model &#x5305;&#x539F;&#x5219;&#x4E0A;&#x53EA;&#x80FD;&#x88AB;&#x5176;&#x4ED6;&#x5305;&#x5BFC;&#x5165;&#xFF0C;&#x4E0D;&#x53EF;&#x4EE5;&#x5BFC;&#x5165;&#x5176;&#x4ED6;&#x5305;&#x3002;&#x6240;&#x4EE5;&#x628A;moke&#x6570;&#x636E;&#x653E;&#x5728;&#x8FD9;&#x91CC;&#xFF0C;&#x4E0D;&#x7BA1;&#x4F60;&#x7684;&#x5355;&#x5143;&#x6D4B;&#x8BD5;&#x6587;&#x4EF6;&#x653E;&#x5728;&#x54EA;&#x91CC;&#x90FD;&#x4E0D;&#x4F1A;&#x51FA;&#x73B0;&#x5FAA;&#x73AF;&#x5BFC;&#x5305;&#x7684;&#x95EE;&#x9898;&#x3002;</p>
<p><img src="https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/100931.png" alt="image-20210421180930190"></p>
</li>
<li><p>&#x5355;&#x5143;&#x6D4B;&#x8BD5;&#x4ECD;&#x7136;&#x4F7F;&#x7528; <strong>*testing.T</strong>&#x6D4B;&#x8BD5;&#xFF08;&#x65B9;&#x4FBF;Idea &#x4E0A;&#x5355;&#x4E2A;&#x65B9;&#x6CD5;&#x6D4B;&#x8BD5;&#xFF09;&#xFF0C; &#x96C6;&#x6210;&#x6D4B;&#x8BD5;&#x4F7F;&#x7528;ginkgo&#xFF08;&#x65B9;&#x4FBF;&#x591A;&#x4E2A;&#x7528;&#x4F8B;&#x4E32;&#x884C;&#x6D4B;&#x8BD5;&#xFF09;&#x3002; </p>
</li>
<li><p>&#x6CE8;&#x518C;</p>
<p><img src="https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/094818.png" alt="image-20210421174816367"></p>
<pre class="language-"><code class="lang-go"><span class="token keyword">package</span> e2e

<span class="token keyword">import</span> <span class="token punctuation">(</span>
  <span class="token operator">...</span><span class="token punctuation">.</span>
<span class="token punctuation">)</span>

<span class="token keyword">func</span> <span class="token function">TestCluster</span><span class="token punctuation">(</span>t <span class="token operator">*</span>testing<span class="token punctuation">.</span>T<span class="token punctuation">)</span> <span class="token punctuation">{</span>

    <span class="token keyword">defer</span> <span class="token function">GinkgoRecover</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
    <span class="token function">RegisterFailHandler</span><span class="token punctuation">(</span>Fail<span class="token punctuation">)</span>
    <span class="token function">RunSpecs</span><span class="token punctuation">(</span>t<span class="token punctuation">,</span> <span class="token string">&quot;Cluster Suite&quot;</span><span class="token punctuation">)</span>
    junitReporter <span class="token operator">:=</span> reporters<span class="token punctuation">.</span><span class="token function">NewJUnitReporter</span><span class="token punctuation">(</span><span class="token string">&quot;./junit.xml&quot;</span><span class="token punctuation">)</span>
    <span class="token function">RunSpecsWithDefaultAndCustomReporters</span><span class="token punctuation">(</span>t<span class="token punctuation">,</span> <span class="token string">&quot;APIServer test&quot;</span><span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token punctuation">]</span>Reporter<span class="token punctuation">{</span>junitReporter<span class="token punctuation">}</span><span class="token punctuation">)</span>
<span class="token punctuation">}</span>
</code></pre>
</li>
<li><p>&#x6DFB;&#x52A0;&#x6240;&#x6709;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x7684;&#x4E00;&#x6B21;&#x6027;&#x6267;&#x884C;&#x7684;&#x524D;&#x7F6E;&#x6761;&#x4EF6;</p>
<pre class="language-"><code class="lang-go"><span class="token keyword">package</span> e2e

<span class="token keyword">import</span> <span class="token punctuation">(</span>
    <span class="token operator">...</span><span class="token punctuation">.</span>
<span class="token punctuation">)</span>

<span class="token keyword">var</span> <span class="token boolean">_</span> <span class="token operator">=</span> <span class="token function">Describe</span><span class="token punctuation">(</span><span class="token string">&quot;Cluster&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token comment">// &#x5728;&#x6240;&#x6709;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x6267;&#x884C;&#x524D;&#x6267;&#x884C;</span>
    <span class="token function">BeforeSuite</span><span class="token punctuation">(</span><span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token function">SetupOamStatusCheck</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
        gateway<span class="token punctuation">.</span><span class="token function">SetUpGatewaysStatusCheck</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
        <span class="token function">setClient</span><span class="token punctuation">(</span>moke<span class="token punctuation">.</span>TestClusterIdStr<span class="token punctuation">)</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span>

    <span class="token comment">// &#x6B64;Describe &#x7528;&#x4F8B;&#x6D4B;&#x8BD5;&#x524D; &#x51C6;&#x5907;&#x73AF;&#x5883;</span>
    <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;cluster test prepare env&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token function">deleteApp</span><span class="token punctuation">(</span><span class="token string">&quot;&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">)</span>
        <span class="token function">deleteGateway</span><span class="token punctuation">(</span><span class="token string">&quot;&quot;</span><span class="token punctuation">,</span> moke<span class="token punctuation">.</span>TestClusterName<span class="token punctuation">)</span>
        <span class="token function">unImportCluster</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span>

    <span class="token comment">// &#x6B64;Describe &#x4E0B;&#x6BCF;&#x4E2A;It &#x4E4B;&#x524D;&#x6267;&#x884C;</span>
    <span class="token function">BeforeEach</span><span class="token punctuation">(</span><span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>

    <span class="token punctuation">}</span><span class="token punctuation">)</span>

    <span class="token comment">// &#x6B64;Describe &#x4E0B;&#x6BCF;&#x4E2A;It &#x4E4B;&#x540E;&#x6267;&#x884C;</span>
    <span class="token function">AfterEach</span><span class="token punctuation">(</span><span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>

    <span class="token punctuation">}</span><span class="token punctuation">)</span>

  <span class="token comment">// &#x4E00;&#x4E2A;&#x63A5;&#x53E3;&#x7528;&#x4E00;&#x4E2A;Context&#x6D4B;&#x8BD5;</span>
    <span class="token function">Context</span><span class="token punctuation">(</span><span class="token string">&quot;sync cluster&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;sync cluster&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token operator">...</span><span class="token punctuation">.</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>

        <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;sync cluster: subUser&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token operator">...</span><span class="token punctuation">.</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>

        <span class="token comment">// &#x9274;&#x6743;&#x7684;&#x884C;&#x4E3A;&#x7531;IAM&#x670D;&#x52A1;&#x63A7;&#x5236;&#xFF0C;&#x6240;&#x4EE5;&#x8FD9;&#x91CC;&#x4ECD;&#x7136;&#x53EF;&#x4EE5;&#x67E5;&#x8BE2;&#x5230;</span>
        <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;sync cluster: subUser no any auth&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token operator">...</span><span class="token punctuation">.</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span>

    <span class="token function">Context</span><span class="token punctuation">(</span><span class="token string">&quot;&#x96C6;&#x7FA4;&#x5BFC;&#x5165;, &#x53D6;&#x6D88;&#x5BFC;&#x5165;&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;&#x672A;&#x6388;&#x6743;&#x7684;&#x7528;&#x6237;&#x5BFC;&#x5165;&#x96C6;&#x7FA4;&#x5931;&#x8D25;&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token operator">...</span><span class="token punctuation">.</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>

        <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;&#x5F02;&#x5E38;1: &#x6B63;&#x5728;&#x5BFC;&#x5165;&#x4E2D;&#x7684;&#x96C6;&#x7FA4;&#xFF0C;&#x53D6;&#x6D88;&#x5BFC;&#x5165;&#x5931;&#x8D25;&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token operator">...</span><span class="token punctuation">.</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>

        <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;&#x5F02;&#x5E38;2: &#x96C6;&#x7FA4;&#x91CD;&#x590D;&#x5BFC;&#x5165;&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token operator">...</span><span class="token punctuation">.</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span>

    <span class="token function">Context</span><span class="token punctuation">(</span><span class="token string">&quot;unImport&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token comment">// &#x4E0D;&#x8981;&#x5728;It&#x5916;&#xFF0C;Contex&#x5185;&#x6709;&#x4EE3;&#x7801;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x5728;&#x7A0B;&#x5E8F;&#x521D;&#x59CB;&#x5316;&#x7684;&#x65F6;&#x5019;&#x6267;&#x884C;&#xFF0C;&#x4EA7;&#x751F;&#x610F;&#x60F3;&#x4E0D;&#x5230;&#x7684;&#x5F02;&#x5E38;&#x3002;</span>
        <span class="token function">It</span><span class="token punctuation">(</span><span class="token string">&quot;&quot;</span><span class="token punctuation">,</span> <span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token operator">...</span><span class="token punctuation">.</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span>

<span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre>
</li>
<li><p>&#x4E0D;&#x8981;&#x5728;It&#x5916;&#xFF0C;Contex&#x5185;&#x6709;&#x4EE3;&#x7801;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x5728;&#x7A0B;&#x5E8F;&#x521D;&#x59CB;&#x5316;&#x7684;&#x65F6;&#x5019;&#x6267;&#x884C;&#xFF0C;&#x4EA7;&#x751F;&#x610F;&#x60F3;&#x4E0D;&#x5230;&#x7684;&#x5F02;&#x5E38;&#x3002;</p>
</li>
</ol>
<h2 id="fqa"><a name="fqa" class="anchor-navigation-ex-anchor" href="#fqa"><i class="fa fa-link" aria-hidden="true"></i></a>FQA</h2>
<p><strong>Q:</strong> &#x5982;&#x4F55;&#x5BF9;&#x5355;&#x4E2A;&#x6587;&#x4EF6;&#x6D4B;&#x8BD5;&#xFF1F;&#x5355;&#x4E2A;&#x6587;&#x4EF6;&#x6D4B;&#x8BD5;&#x4F1A;&#x51FA;&#x73B0;&#x81EA;&#x5B9A;&#x4E49;&#x51FD;&#x6570; undefined&#x3002;</p>
<p><img src="https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/092931.png" alt="image-20210412172929724"></p>
<p><strong>A:</strong> &#x5728;<code>Descirbe</code>, <code>Context</code> &#x548C; <code>It</code>&#x524D;&#x9762;&#x6DFB;&#x52A0;F&#x4EE5;&#x7F16;&#x7A0B;&#x65B9;&#x5F0F;&#x4E13;&#x6CE8;&#x4E8E;&#x5355;&#x4E2A;&#x89C4;&#x683C;&#x6216;&#x8005;&#x6574;&#x4E2A;&#x5BB9;&#x5668;&#x7684;&#x89C4;&#x683C;&#x3002;</p>
<p><strong>Q</strong> :&#x5982;&#x4F55;&#x5C06;&#x6587;&#x4EF6;&#x6309;&#x987A;&#x5E8F;&#x6D4B;&#x8BD5;&#xFF1F;</p>
<p><strong>A</strong>: &#x6587;&#x4EF6;&#x9ED8;&#x8BA4;&#x662F;&#x968F;&#x673A;&#x6D4B;&#x8BD5;&#xFF0C;&#x4E0D;&#x5EFA;&#x8BAE;&#x987A;&#x5E8F;&#x6D4B;&#x8BD5;&#x3002;&#x53EF;&#x4EE5;&#x53D1;&#x73B0;&#x4E0D;&#x540C;&#x7684;&#x6D4B;&#x8BD5;&#x6587;&#x4EF6;&#x4E4B;&#x95F4;&#x662F;&#x5426;&#x6709;&#x6C61;&#x67D3;&#x3002;</p>
<p><strong>Q:</strong> Context&#xFF0C;IT &#x6D4B;&#x8BD5;&#x987A;&#x5E8F;&#x662F;&#x600E;&#x6837;&#x7684;&#xFF1F;</p>
<p><strong>A:</strong> Context &#xFF0C;IT &#x90FD;&#x662F;&#x6309;&#x987A;&#x5E8F;&#x6267;&#x884C;&#x3002;</p>
<p><strong>Q:</strong>&#x6709;&#x4EFB;&#x52A1;&#x53D1;&#x751F;&#x5931;&#x8D25;&#x6216;&#x53EA;&#x6267;&#x884C;&#x4E86;&#x90E8;&#x5206;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#xFF0C;&#x90FD;&#x65E0;&#x6CD5;&#x83B7;&#x53D6;&#x8986;&#x76D6;&#x7387;&#xFF1F;</p>
<p><strong>A</strong>: ...</p>
<h2 id="link"><a name="link" class="anchor-navigation-ex-anchor" href="#link"><i class="fa fa-link" aria-hidden="true"></i></a>link</h2>
<ul>
<li><a href="https://github.com/onsi/gomega" target="_blank">gomega</a></li>
<li><a href="https://github.com/onsi/ginkgo" target="_blank">ginkgo</a></li>
<li><a href="https://ke-chain.github.io/ginkgodoc/" target="_blank">&#x4E2D;&#x6587;&#x6587;&#x6863;</a></li>
<li><a href="http://onsi.github.io/ginkgo/#avoiding-dot-imports" target="_blank">ginkgo EN doc</a> </li>
</ul>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; caixisheng 2017 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2021-05-19 10:46:05
</span></footer> <link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css"> <script>     window.klipse_settings = {         selector: ".language-klipse, .lang-eval-clojure",         selector_eval_js: ".lang-eval-js",         selector_eval_python_client: ".lang-eval-python",         selector_eval_php: ".lang-eval-php",         selector_eval_scheme: ".lang-eval-scheme",         selector_eval_ruby: ".lang-eval-ruby",         selector_reagent: ".lang-reagent",        selector_google_charts: ".lang-google-chart",        selector_es2017: ".lang-eval-es2017",        selector_jsx: ".lang-eval-jsx",        selector_transpile_jsx: ".lang-transpile-jsx",        selector_render_jsx: ".lang-render-jsx",        selector_react: ".lang-react",        selector_eval_markdown: ".lang-render-markdown",        selector_eval_lambdaway: ".lang-render-lambdaway",        selector_eval_cpp: ".lang-eval-cpp",        selector_eval_html: ".lang-render-html",        selector_sql: ".lang-eval-sql",        selector_brainfuck: "lang-eval-brainfuck",        selector_js: ".lang-transpile-cljs"    }; </script> <script src="https://storage.googleapis.com/app.klipse.tech/plugin/js/klipse_plugin.js"></script>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: Ginkgo">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="ginkgo_cmd.html" class="navigation navigation-next " aria-label="Next page: Ginkgo Cmd">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Ginkgo","level":"1.13.1.1","depth":3,"next":{"title":"Ginkgo Cmd","level":"1.13.1.2","depth":3,"path":"blog/测试/ginkgo/ginkgo_cmd.md","ref":"blog/测试/ginkgo/ginkgo_cmd.md","articles":[]},"previous":{"title":"Ginkgo","level":"1.13.1","depth":2,"path":"blog/测试/ginkgo/README.md","ref":"blog/测试/ginkgo/README.md","articles":[{"title":"Ginkgo","level":"1.13.1.1","depth":3,"path":"blog/测试/ginkgo/ginkgo.md","ref":"blog/测试/ginkgo/ginkgo.md","articles":[]},{"title":"Ginkgo Cmd","level":"1.13.1.2","depth":3,"path":"blog/测试/ginkgo/ginkgo_cmd.md","ref":"blog/测试/ginkgo/ginkgo_cmd.md","articles":[]},{"title":"Readme","level":"1.13.1.3","depth":3,"path":"blog/测试/ginkgo/readme.md","ref":"blog/测试/ginkgo/readme.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["summary","expandable-chapters","toggle-chapters","theme-comscore","-lunr","-search","-highlight","-livereload","search-plus@^0.0.11","simple-page-toc@^0.1.1","github@^2.0.0","github-buttons@2.1.0","edit-link@^2.0.2","disqus@^0.1.0","prism@^2.1.0","prism-themes@^0.0.2","advanced-emoji@^0.2.1","anchors@^0.7.1","include-codeblock@^3.0.2","emphasize@^1.1.0","katex@^1.1.3","splitter@^0.0.8","mermaid-gb3@2.1.0","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","sectionx@^3.1.0","donate@^1.0.2","local-video@^1.0.1","anchor-navigation-ex@0.1.8","favicon@^0.0.2","3-ba@^0.9.0","terminal@^0.3.2","alerts@^0.2.0","include-csv@^0.1.0","puml@^1.0.1","musicxml@^1.0.2","klipse@^1.2.0","versions-select@^0.1.1","-sharing","sharing-plus@^0.0.2","graph@^0.1.0","chart@^0.2.0"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © caixisheng 2017","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"include-csv":{},"disqus":{"useIdentifier":false,"shortName":"gitbookuse"},"emphasize":{},"github":{"url":"https://github.com/xishengcai/xisheng.blog"},"puml":{},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"summary":{},"splitter":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"versions-select":{"type":"branches"},"graph":{},"donate":{"alipay":"https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/zhifubao-pay.jpg","alipayText":"支付宝打赏","button":"赏","title":"","wechat":"https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/weixin-pay.jpg","wechatText":"微信打赏"},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"musicxml":{},"sectionx":{"tag":"b"},"mermaid-gb3":{},"anchor-navigation-ex":{"isRewritePageTitle":false,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"theme-comscore":{},"prism-themes":{},"alerts":{},"github-buttons":{"repo":"xishengcai/xisheng.blog","types":["star"],"size":"small"},"3-ba":{"configuration":"auto","token":"ff100361cdce95dd4c8fb96b4009f7bc"},"expandable-chapters-small":{},"local-video":{},"klipse":{"myConfigKey":"it's the default value"},"advanced-emoji":{"embedEmojis":false},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":false,"all":["facebook","google","twitter","weibo","instapaper","linkedin","pocket","stumbleupon","qq","qzone"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":true,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":true},"terminal":{"copyButtons":true,"fade":false,"style":"flat"},"edit-link":{"label":"Edit This Page","base":"https://github.com/xishengcai/xisheng.blog/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"chart":{"type":"c3"},"toggle-chapters":{},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"xishengcai","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"这是程序员吗","language":"zh-hans","output.name":"site","links":{"sidebar":{"Home":"https://xisheng.vip"}},"gitbook":"3.2.3","description":"这是程序员吗"},"file":{"path":"blog/测试/ginkgo/ginkgo.md","mtime":"2021-05-19T02:46:05.227Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-06-23T07:51:54.455Z"},"basePath":"../../..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../../../gitbook/gitbook.js"></script>
    <script src="../../../gitbook/theme.js"></script>
    
        
        <script src="../../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sectionx/sectionx.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-3-ba/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-terminal/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-alerts/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-musicxml/osmd.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-musicxml/musicxml.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-musicxml/promise.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-versions-select/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    <script src="../../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

